• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

package problem

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Im lost with package problem. Why do I get a comipler error on DOMParser, I found this on the Java Ranach wkiki FAQ - XML. Do I need something more then just this code?
 
author
Posts: 154
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Make sure you are including all the relevant JAR files in your classpath when you run the code.
If you're still having problems, post a copy of the compiler's error messages. That will help us to work out what's going on.
Regards,
David Peterson
 
Je Th
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thats the "tricky" part "package org.apache.xerces.parsers does not exist" it the compiler error.
 
David Peterson
author
Posts: 154
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Download the latest Xerces JARs from http://gump.covalent.net/jars/latest/xml-xerces2/ and add them to your classpath.
David Peterson
 
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I cant mange to add the jars to my classpath. How do i do it? Create a enviroment variable called "CLASSPATH" and value "C:\myJarFiles\xercesImpl.jar;C:\myJarFiles\xmlParserAPIs.jar;" or is it more to it?
 
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check out HowToSetTheClasspath in the Java Ranch FAQ.
 
Sebastian Green
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I mange to install the jars to my classpath but now Im getting this error:
Exception in thread "main" java.lang.NoClassDefFoundError: SchemeValidationExample
Any one got a clue?
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Exactly what does your CLASSPATH setting look like?
Did you forget to include a . in your CLASSPATH?
 
Je Th
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I dont got any classpath i just copied the jar-files to the jre\lib\ext-folder. So I can compile it. Now its working, but not my CLASSPATH.. Its strange. If I remove the jar-files from the ext-folder, then it wont work. This is how my CLASSPATH looks like ".;C:\java\xerces-2_6_0\xercesImpl.jar;C:\java\xerces-2_6_0\xmlParserAPIs.jar", and Im using WinXP.
[ February 16, 2004: Message edited by: Je Th ]
 
Willie Smits can speak 40 languages. This tiny ad can speak only one:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic