I'm having a strange problem running a jar file I created using Eclipse.
The application works correctly inside the IDE -- it compiles, runs,
etc. So I exported it to a jar file and am trying to run it outside the
IDE now. It requires an external jar file.
I'm running it as:
java -classpath path_to_external_jar/extJar.jar -jar myapp.jar
When I do this, I receive a ClassDefNotFound exception for one
of the classes in the external jar. A jar tf extJar.jar shows the
class present in the jar file (which it had to be or it wouldn't have
compiled inside Eclipse.)
Anyone have an idea what's wrong? I've even placed the external
jar in the ext directory for the JRE and it's still not found. I'm
obviously missing something but I'm not sure what.
TIA