Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

JVM error

Posted on 2002-06-06
2
Medium Priority
?
211 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:Judy Deo
[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 600 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

604 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