• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

jaxp

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
aude tantot
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Forte or other IDEs will add classes to the classpath.
HTH
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!