Solved

JVM error

Posted on 2002-06-06
2
205 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
network + 7 80
Systems talking to each other 5 125
How can I do a Massively massive community reviewing-and-grading site? 7 69
@SBGen Method 3 38
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…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
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:
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

920 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

15 Experts available now in Live!

Get 1:1 Help Now