[jdom-interest] Batch File and Classpath
Bryan Thale
bryan.thale at motorola.com
Fri Aug 8 10:20:25 PDT 2003
>
> The batch file does the following command :
> java -jar -classpath jdom.jar CampNotes.jar
I got bit by something similar on my first JAR. Turns out the -jar and
-classpath options are mutually exclusive. If you're trying to use
-jar, you need to put your classpath in the META-INF/manifest file of
the jar. That's only place java will look for classpath info with the
-jar option.
HTH,
Bryan.
--
Bryan Thale
Networks & Infrastructure Research, Motorola Labs
mailto:bryan.thale at motorola.com
More information about the jdom-interest
mailing list