Solved

JVM error

Posted on 2002-06-06
2
204 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
Comment Utility
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
Comment Utility
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

772 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now