[jdom-interest] Jar-Archive

Jason Hunter jhunter at servlets.com
Thu Feb 7 09:34:33 PST 2002

I believe when you "-jar" run a JAR file it ignores the classpath. 
You'd need to have supporting JARs in your MANIFEST.MF for them to be


Joern Muehlencord wrote:
> Hi out there,
> is there any reason, why I cannot run my program out of a jar file,
> since I am using JDOM?
> java -jar -cp /path/to/jdom.jar myprog.jar
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/jdom/JDOMException
> (jdom.jar ist listet in die Classpath as well.)
> Do I have to include the classes as well? Or do I need a specel tag in
> the manifest-file? Any hints?
> Thanx
>   Joern
> --
> The box said "Requires Win95, NT, or better," and so I installed Linux.
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com

More information about the jdom-interest mailing list