This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes jaxp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "jaxp" Watch "jaxp" New topic
Author

jaxp

aude tantot
Ranch Hand

Joined: May 21, 2001
Posts: 39
i've some trouble with installing jaxp. i've unzipped the sun's zip in c:\jaxp, then copied the .jar files into:\jdk1.3.0_02\jre\lib\ext as written in the install note. But when i try to execute an example i obtain:java.lang.NoClassDefFoundError : javax\xml\parsers\ParserConfigurationException , and this class is in jaxp.jar (i've checked)...
HELPPPPPP!!!

[This message has been edited by aude tantot (edited June 01, 2001).]
Ajith Kallambella
Sheriff

Joined: Mar 17, 2000
Posts: 5782
Try adding the jar file directly to the CLASSPATH and see if that works ie.,
CLASSPATH = <CLASSPATH>;C:\jdk1.3.0_02\jre\lib\ext\jaxp.jar.

HTH

------------------
Ajith Kallambella M.
Sun Certified Programmer for the Java�2 Platform.
IBM Certified Developer - XML and Related Technologies, V1.


Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
aude tantot
Ranch Hand

Joined: May 21, 2001
Posts: 39
I did what you suggest, now the error is
Exception in thread "main" java.lang.NoClassDefFoundError OMEcho
DOMEcho.java is the pgm i'm trying to compile and execute, no error on compiling, th DOMEcho.class is created.
that pgm is provided by sun as un example of DOM, so i suppose the code's right.
Ajith Kallambella
Sheriff

Joined: Mar 17, 2000
Posts: 5782
Ah, that error is because of your DOMEcho.java program, not the jaxp.jar file.
Make sure the directory DOMECho.java resides in is a part of CLASSPATH. FYI, not only the jar files, but all the .class files must be reachable ( is there a better word? ) through the CLASSPATH. The ClassLoader in JVM searches for the .class files in the current directory and all the directories in the CLASSPATH.
Hope that helps!
------------------
Ajith Kallambella M.
Sun Certified Programmer for the Java�2 Platform.
IBM Certified Developer - XML and Related Technologies, V1.
aude tantot
Ranch Hand

Joined: May 21, 2001
Posts: 39
that's it thanks.
Can you explain me why when i launched the example from Forte i hadn't that pb, the file mounted wasn't in the classpath
Tiger Scott
Ranch Hand

Joined: Mar 01, 2001
Posts: 223
Forte or other IDEs will add classes to the classpath.
HTH
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: jaxp
 
Similar Threads
Formain an XML Doc from dtd and classes
Support for Moving element from one document to other
please help
[ol'Zljvuk'Jvtpun'
Which one is the best XML parser?