Forum Stats

  • 3,875,872 Users
  • 2,266,977 Discussions
  • 7,912,361 Comments

Discussions

Jaxp & Java Problem

843834
843834 Member Posts: 49,972
edited Jul 30, 2001 3:11AM in Java Technology & XML
I'm getting
Exception in thread "main" java.lang.NoclassDefFound : org/xml/sax/helpers/DefaultHandlers.
xalan.jar,jaxp.jar, and crimson.jar are in
c:\jdk1.3.3\jre\lib\ext
I tried creating a CLASSPATH environment variable but that didn't work either. Can any one give me a procedure to follow that will straighten this out.

Comments

  • 843834
    843834 Member Posts: 49,972
    javac -classpath %JAXPPATH%\jaxp.jar;%JAXPPATH%\xalan.jar;%JAXPPATH%\crimson.jar Example.java

    java -classpath %JAXPPATH%\jaxp.jar;%JAXPPATH%\xalan.jar;%JAXPPATH%\crimson.jar;%YOUREXAMPLEPATH% Example

    Hope this helps
This discussion has been closed.