I'm having a problem getting an application to run when packaged as an executable Jar file (
java -jar MyJar.jar).
The application needs to reference an external Jar file (javamail-1.4's mail.jar). When I include that Jar on the Class-Path attribute of the Manifext.mf file, then I get a ClassNotFoundException on my main class. Without the class-path entry, my main class is found just fine (but of course it can't find the javamail stuff...).
First, here is the structure of my application's Jar file:
Here is the contents of my meta-inf/Manifest.mf file:
When the Manifest.mf file includes a Class-Path entry, is there something special I need to do to get the classes in my Jar on the class path as well?
I'm assuming I'm doing something silly, but after pouring over several tutorials/examples, I just don't see it.
Thanks,