<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2713.1100" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>So now I have the jdom.jar in my classpath as
follows:<BR>CLASSPATH=<BR>".;<BR>C:\Program
Files\jdk1.3.1_01\lib\tools.jar;<BR>C:\Program
Files\jakarta-ant\bootstrap\lib\ant.jar;<BR>C:\Program
Files\xml_api\jdom\build\jdom.jar;<BR>C:\Program
Files\xml_api\jdom\lib\xerces.jar;<BR>C:\Program
Files\xml_api\jdom\lib\crimson.jar;<BR>C:\Program
Files\xml_api\jdom\lib\jaxp.jar;<BR>C:\Program
Files\xml_api\jdom\lib\xalan.jar;<BR>C:\Program
Files\xml_api\sax2\sax2-r2pre3.jar;"<BR><BR>I have these files copied in the
following directory:<BR>C:\Program
Files\JavaSoft\JRE\1.3.1\lib\ext<BR>crimson.jar<BR>jaxp.jar<BR>jdom.jar<BR>sax2-r2pre3.jar<BR>xalan.jar<BR>xerces.jar<BR><BR>Same
files are copied in this directory:<BR>C:\Program
Files\jdk1.3.1_01\jre\lib\ext<BR>crimson.jar<BR>jaxp.jar<BR>jdom.jar<BR>sax2-r2pre3.jar<BR>xalan.jar<BR>xerces.jar<BR><BR>But
I'm getting this error message:<BR>Exception in thread "main"
java.lang.NoClassDefFoundError:<BR>SAXTest("NamHyData")<BR><BR>when I'm runing
my SAXTest.class with the following code:<BR>import java.io.File;<BR>import
org.jdom.Document;<BR>import org.jdom.Element;<BR>import
org.jdom.JDOMException;<BR>import org.jdom.input.SAXBuilder;<BR><BR>public class
SAXTest{<BR> public static void main(String[] args){<BR> if
(args.length != 1){<BR> System.out.println("Usage: SAXTest(filename
to parse)");<BR> return;<BR> }<BR><BR>
try{<BR> //Request document building without
validation<BR> SAXBuilder builder = new
SAXBuilder(false);<BR> Document doc = builder.build(new
File(args[0]));<BR> System.out.println("Document successfully
read");<BR> }<BR> catch(JDOMException e){<BR>
e.printStackTrace();<BR> }<BR> }<BR>}<BR><BR>What can you determine
as wrong move or programming?</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Multispex Designs<BR>Rep.: Shant Adam<BR>Tel.:
(514) 827-4840<BR><A
href="mailto:adams@multispex.com">adams@multispex.com</A><BR><A
href="http://www.multispex.com">http://www.multispex.com</A><BR>---<BR>Visual
technology service provider.<BR>Fournisseur de service de technologie
visuel.<BR>---<BR>Copyright 1998-2002©<BR>Multispex
Designs®</FONT></DIV></BODY></HTML>