[jdom-interest] Exception in thread "main" java.lang.NoClassesDefFoundError: org/apache/tools/ant/Main

Benjamin Kopic benjamin.kopic at pancontext.com
Fri Aug 9 05:52:15 PDT 2002


Michael

You seem to be using Jakarta Ant, which also comes with JDOM installation. Add
'ant.jar' from your JDOM 'lib' directory to your classpath.

Best regards

Benjamin

> -----Original Message-----
> From: jdom-interest-admin at jdom.org
> [mailto:jdom-interest-admin at jdom.org]On Behalf Of Michael Kraut
> Sent: 09 August 2002 13:17
> To: jdom-interest at jdom.org
> Subject: [jdom-interest] Exception in thread "main"
> java.lang.NoClassesDefFoundError: org/apache/tools/ant/Main
>
>
> Hello together,
>
> I just start to program with java and I have some problems to install
> the packages of jdom correctly.
>
> I tried before:
> 1) I put the jdom.jar file in the path: C:\j2sdk1.4.1\jre\lib\ext
> 	After that my compiler (javac) knows the package of org.jdom. etc.
> 	But when I start my program with the interpreter I got the message:
>
> 	Exception in thread "main" java.lang.NoClassesDefFoundError:
> org/apache/tools/ant/Main
>
> 	I received the message for the following code: 	Element root =
> new Element ("test");
> 	I received no Error for this code:			Element root;
>
> 2) I tried to start the build.bat file, but I got the same message:
>
> 	Exception in thread "main" java.lang.NoClassesDefFoundError:
> org/apache/tools/ant/Main
>
>
> Now I ran out of ideas, what I could do to solve the problem and I#m
> glad for any help :))
>
> regards Michael Kraut
>
> ______________________________________________________________________________
> Nutzen Sie Ihre Zeit fur wirklich wichtige Dinge! Alle E-Mail-Adressen
> zentral verwalten unter: http://freemail.web.de/?mc=021121
>
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@y
ourhost.com




More information about the jdom-interest mailing list