Solved

JVM error

Posted on 2002-06-06
2
209 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

705 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