[jdom-interest] Well I've been FAQed

Malachi de AElfweald malachi at tremerechantry.com
Fri Nov 8 20:41:44 PST 2002


I believe doing that will require that
the dependant jars are in the same directory
as well....

Question, why not just drop jdom into JDK1.4
extension directory? Shouldn't even need xerces
then. And -jar should work.

Malachi

11/8/2002 8:22:47 AM, Gordon Tyler <gordon.tyler at sitraka.com> wrote:

>Doug Robinson wrote:
>> Hello
>> 	As a newcommer to jdom I am stumbling around through the simplest things.
>> e.g.I run my test program and get thin message:
>> 
>>  java -jar MyMail.jar
>> Exception in thread "main" java.lang.NoClassDefFoundError: 
>> org/jdom/JDOMException
>>         at MyMail.MyMail.init(MyMail.java:13)
>>         at MyMail.MyMail.main(MyMail.java:31)
>
>Observe the following in the java executable documentation:
>
>http://java.sun.com/j2se/1.4.1/docs/tooldocs/linux/java.html#-jar
>
>Using the -jar command makes java ignore all other classpath settings 
>except what is specified in the JAR's manifest file.
>
>What I would recommend that you do is put all the JARs that MyMail.jar 
>requires in the same directory and add the following to MyMail.jar's 
>manifest:
>
>Class-Path: xerces.jar jdom.jar
>
>See the following for more information about the format of the JAR manifest:
>
>http://java.sun.com/j2se/1.4.1/docs/guide/jar/jar.html#JAR%20Manifest
>
>Ciao,
>Gordon
>
>-- 
>Gordon Tyler
>Software Developer, R&D
>Sitraka -- Performance is Mission Critical
>
>_______________________________________________
>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