• 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
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

xerces under windows millenium

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to Java and XML and I am trying to solve a problem that has bothered for few days.
I have downloaded the parser Xerser-1.4.4 and JDK2. I install the JDK first and test it, it works.
Then I install the parser, using this command right under the C drive.
I set the CLASSPATH to C:\xerces-1_4_4\\xerces.jar;C:\xerces-1_4_4\xercesSamples.jar;
and I type the command “cd C:\xerces-1_4_4”. This brings me to the directory. Then I issue the command “java sax.saxcount data/personal.xml –v”
I get the following error:
Exception in thread “main” java.lang,NoClassDefFoundError: sax/saxcount
Same behavior for DomCount.
I am very sure I have defined the classpath for the parser and my java is working. I do not understand where does the sax.saxcount come from?
I have already consult few FAQs but found no solution on this problem.
Can you help me ?
Thanks
 
Bartender
Posts: 1840
Eclipse IDE Ruby Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java is case-sensitive. try:
java sax.SAXCount data/personal.xml -v
 
Godelieve Blanpain
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the advise, but I already tried all combinations (uppercase, lowercase, upper and lowercase)... and the answer is always the same !
Godelieve
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure why this thread is in this forum - I think theres an XML forum, but since I just installed xerces I thought I'd try it.
First I got the same error as you, then I looked in XercesSamples.jar (you can use winzip to check this yourself) to see what classes were there and noticed that its "SAXCount", so
"java sax.SAXCount c:\general\veg.xml -v" works. I then noticed that Joel has already pointed this out.
When you say you've tried all combinations of upper case and lower case I somehow doubt it,are you sure that you've tried "SAXCount" ?
 
Godelieve Blanpain
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pretty sure, yes, but I'll try again...
Thanks
 
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is it SaxCount or sax.Counter? I know on mine it is sax.Counter. (this means the Counter class in the sax package).
Hope this Helps,
Jon
 
grapes are vegan food pellets. Eat this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!