[jdom-interest] java.lang.NoClassDefFoundError: org/jdom/Element...Please Help!!!

Ricardo Rubio Sánchez r-rubio at terra.es
Sun Jul 6 09:37:04 PDT 2003


Naveen My wrote:

> java.lang.NoClassDefFoundError: org/jdom/Element
>
> I am getting the above error when I am trying to access the servlet in my application...
>
> Do I need to make any changes to my classptha settings???
>
> My Classpath:
>
> .;D:\jdom-b9\jdom-b9\lib\xerces.jar;D:\Tomcat 4.1\common\lib\servlet.jar;D:\Oracle\Ora81\jdbc\lib\ojdbc14.jar;D:\jdom-b9\jdom-b9\build\jdom.jar;D:\jdom-b9\jdom-b9\lib\ant.jar;D:\jdom-b9\jdom-b9\lib\xml-apis.jar;D:\jdom-b9\jdom-b9\build\jdom.jar;
>
>
>
> My path
>
> D:\jdom-b9\jdom-b9\lib\xerces.jar;D:\Oracle\Ora81\bin;C:\Program Files\Oracle\jre\1.1.7\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;D:\Oracle\Ora81\jdbc\lib\ojdbc14.jar;D:\jdom-b9\jdom-b9\build\jdom.jar;D:\jdom-b9\jdom-b9\lib\ant.jar;D:\jdom-b9\jdom-b9\lib\xml-apis.jar;
>
>
>
> I also put jdom.jar and xerces.jar in I just had to put the file "jdom.jar" in the directory
>
> D:\j2sdk1.4.x\jre\lib\ext   directory....
>
> Please guide me...
>
> thanks
>
> naveen
>
>   ------------------------------------------------------------------------
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!

I have a little application made in JSP which uses the Apache Tomcat Server. I had the same problem and I had solutioned it by copying the jdom classes into the directory
D:\{ApacheTomcat in your hard disk}\classes\

Putting it in my classpath and path didn´t seem to work for me either.

You can obtain the class files and directories using the build.bat or the java 'jar' command.

I hope this will fix your problem.

Sorry for my english. Saludos.

RRS




More information about the jdom-interest mailing list