Hi, bekomm beim ausführen meiner jar folgenden Fehler:
java.lang.ClassNotFoundException: com.mysql.jdbc.driver
Kann mir jamand sagen wie ich die Klasse in der build.xml angeben muss??
[JAVA=42]
<?xml version="1.0" encoding="UTF-8" ?>
- <project name="SDVerteiler" default="build" basedir=".">
<description>Builds, tests, and runs the project sDVersteiler</description>
<import file="nbproject/build-impl.xml" />
- <target name="-do-jar-with-manifest">
<mkdir dir="${dist.dir}" />
- <jar destfile="${dist.dir}/sDHostLogs.jar">
<fileset dir="${build.classes.dir}" includes="sD/classes/**" />
<fileset dir="${build.classes.dir}" includes="sD/engine/**" />
<fileset dir="${build.classes.dir}" includes="sD/start/**" />
- <manifest>
<attribute name="Main-Class" value="sD/start/MainSDGetHostLogs" />
<attribute name="Built-By" value="${user.name}" />
<attribute name="Package" value="${package}" />
<attribute name="Extension-Name" value="${name}" />
<attribute name="Specification-Title" value="${title}" />
<attribute name="Implementation-Version" value="${version}" />
<attribute name="Implementation-Vendor" value="${vendor}" />
</manifest>
</jar>
</target>
- <target name="-do-jar-without-manifest">
<echo message="skip -do-jar-without-manifest" />
</target>
- <target name="-do-jar-with-mainclass">
<echo message="skip -do-jar-with-mainclass" />
</target>
- <target name="-do-jar-with-libraries">
<echo message="skip -do-jar-with-libraries" />
</target>
</project>
[/code]
Danke
lg
java.lang.ClassNotFoundException: com.mysql.jdbc.driver
Kann mir jamand sagen wie ich die Klasse in der build.xml angeben muss??
[JAVA=42]
<?xml version="1.0" encoding="UTF-8" ?>
- <project name="SDVerteiler" default="build" basedir=".">
<description>Builds, tests, and runs the project sDVersteiler</description>
<import file="nbproject/build-impl.xml" />
- <target name="-do-jar-with-manifest">
<mkdir dir="${dist.dir}" />
- <jar destfile="${dist.dir}/sDHostLogs.jar">
<fileset dir="${build.classes.dir}" includes="sD/classes/**" />
<fileset dir="${build.classes.dir}" includes="sD/engine/**" />
<fileset dir="${build.classes.dir}" includes="sD/start/**" />
- <manifest>
<attribute name="Main-Class" value="sD/start/MainSDGetHostLogs" />
<attribute name="Built-By" value="${user.name}" />
<attribute name="Package" value="${package}" />
<attribute name="Extension-Name" value="${name}" />
<attribute name="Specification-Title" value="${title}" />
<attribute name="Implementation-Version" value="${version}" />
<attribute name="Implementation-Vendor" value="${vendor}" />
</manifest>
</jar>
</target>
- <target name="-do-jar-without-manifest">
<echo message="skip -do-jar-without-manifest" />
</target>
- <target name="-do-jar-with-mainclass">
<echo message="skip -do-jar-with-mainclass" />
</target>
- <target name="-do-jar-with-libraries">
<echo message="skip -do-jar-with-libraries" />
</target>
</project>
[/code]
Danke
lg