[jdom-interest] classpath problem

RM Barry rbarry at ING.SUN.AC.ZA
Fri Mar 16 06:21:41 PST 2001


I quote from the FAQ: 

I tried to use JDOM and get an error like this: 
java.lang.NoSuchMethodError 
 or
 java.lang.NoClassDefFoundError: 
org/xml/sax/SAXNotRecognizedException  
What's wrong?  
You need to ensure that the xerces.jar file supplied with the 
JDOM download  is in your classpath before any other XML classes, 
such as those that come with  JAXP or Crimson. These other XML 
libraries, as well as older versions of Apache  Xerces, support DOM 
Level 1 and SAX 1.0, not the required DOM Level 2 and  SAX 2.0. 
The result is an exception being thrown. Check your classpath, and 
try  again. If the classpath looks OK, the problematic JAR might also 
be hiding in the  system's standard extension directory 
(jre\lib\ext).  
I'm having this problem, and I tried to solve it by putting the 
xerces.jar file as  the first entry of my classpath, but no joy.   I'm 
using Forte4j community  edition as IDE, and this is the classpath I 
specify for the compiler: 

C:\devel\jdom-
b6\lib\xerces.jar;C:\DEVEL\FORTE4J\lib\patches\openide- 
compat.jar;C:\DEVEL\FORTE4J\lib\developer.jar;C:\DEVEL\FO
RTE4J\lib\o 
penide.jar;C:\DEVEL\FORTE4J\lib\updater.jar;C:\DEVEL\FORT
E4J\lib\ext\ 
AbsoluteLayout.jar;C:\DEVEL\FORTE4J\lib\ext\icebrowserlitebe
an.jar;C:\DE VEL\FORTE4J\lib\ext\javac.jar;C:\devel\jdom- 
b6\build\jdom.jar;C:\DEVEL\FORTE4J\lib\ext\jaxp.jar;C:\DEVEL
\FORTE4J\ 
lib\ext\jh.jar;C:\DEVEL\FORTE4J\lib\ext\parser.jar;C:\DEVEL\F
ORTE4J\lib\ 
ext\regexp.jar;C:\DEVEL\FORTE4J\lib\ext\servlet.jar;C:\JDK1.3\l
ib\dt.jar;C:\ JDK1.3\lib\tools.jar;C:\devel;C:\devel\xmlrpc-
java;C:\devel\xmlrpc- 
java.zip;C:\devel\HTTPClient.zip;C:\devel\xmlrpc-
java\lib\openxml- 1.2.jar;C:\devel\xmlrpc-java\lib\xmlrpc-
applet.jar;C:\devel\xmlrpc- java\lib\xmlrpc.jar;C:\devel\jdom-
b6\lib\collections.jar;C:\devel\jdom- b6\lib\ant.jar 

As you can see the xerces.jar file is the first entry. 

Can anyone help me on this?  I'm a novice programmer so even 
obvious help  will be helpfull. 
Thanks, 
Richard Barry 



More information about the jdom-interest mailing list