• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use xerces-j ?

 
jim yin
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have xerces-j tools, they include xerces.jar file. I put this jar file in jre/lib/ext directory under sdk1.4. I tried to run a xml file like this:
java sax.SAXCount -v sample.xml
It did not work, it keeps giving me "NoClassDefFoundError:sax.SAXCount".
I aslo put the location og the jar file in my classpath, it did not work either.
I am wondering if sax.SAXCount program is included in xecrces.jar or not.
 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try -
java sax.Counter -v sample.xml
I have some reservations about the -v option.
Please let me know if it works for you.
Cheers,
Dan
 
jim yin
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, Dan:
I got the same error message.
 
jim yin
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I already figured it out. Just my env var problem.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic