Solved

JVM error

Posted on 2002-06-06
2
207 Views
Last Modified: 2010-03-31
i am trying to run a custom cold fusion tag written in java and am getting the following error. is this error
referring to a missing file in the class path.
the xerces.jar file?  

*****************************
java.lang.NoClassDefFoundError: org/apache/xerces/parsers/DOMParser. Java exception occurred in call to method.
****************************
0
Comment
Question by:sagardeo
2 Comments
 

Accepted Solution

by:
0xDEADBEEF earned 200 total points
ID: 7060445
Seems like the classpath is set wrongly.
The jvm can't find the org.apache.xercs.parsers.DOMParser class, that's why a NoClassDefFoundError occurs.
Try

echo $CLASSPATH

on your commandline (under windows, try 'set' and search for your classpath). It has to include the javadir/lib/tools.jar, where 'javadir' is the directory your jdk is in.

Hope this helps.
0
 
LVL 35

Expert Comment

by:girionis
ID: 7060487
It is definetely a classpath problem. Find out in which jar file the DOMParser resides and add this jar file explicity to your classpath by doing: export CLASSPATH=$CLASPATH:<path to your jar file>

 Hope it helps.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question