S
Sean Givan
I'm fairly new to Eclipse and Java programming, and I'm running into a
problem with an application I'm writing.
I have an application that uses the JRE and two external JARs (one for
communication with mySQL and one for playing MP3 files.) When I
launch the application within Eclipse, it knows where to find
everything and launches just fine.
However, when I choose File/Export.. JAR File from the menu, and try
to launch the JAR file from the command line, I get errors. The
program stops with a ClassDefNotFound error when it tries to set a
JDBC driver that it loads by name. Eclipse can find this class from
the 'mysql.jar' I added to the project, but the exported JAR file is
clueless, even with a '.classpath' file included in it.
I tried looking through Eclipse's run configuration dialogs to see if
I could figure out the exact command line it was using, but Eclipse
seems to be hiding it from the user.
Is there a way to find out the command line Eclipse is using? Or
otherwise, how exactly can you run a JAR file that needs to access the
classes of other JAR files?
Thanks,
-Sean Givan
problem with an application I'm writing.
I have an application that uses the JRE and two external JARs (one for
communication with mySQL and one for playing MP3 files.) When I
launch the application within Eclipse, it knows where to find
everything and launches just fine.
However, when I choose File/Export.. JAR File from the menu, and try
to launch the JAR file from the command line, I get errors. The
program stops with a ClassDefNotFound error when it tries to set a
JDBC driver that it loads by name. Eclipse can find this class from
the 'mysql.jar' I added to the project, but the exported JAR file is
clueless, even with a '.classpath' file included in it.
I tried looking through Eclipse's run configuration dialogs to see if
I could figure out the exact command line it was using, but Eclipse
seems to be hiding it from the user.
Is there a way to find out the command line Eclipse is using? Or
otherwise, how exactly can you run a JAR file that needs to access the
classes of other JAR files?
Thanks,
-Sean Givan