• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

please help with compilation problem

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am learning XML with Deitel XML how to Program.
I am on chapter 8, example 8.10.
I have downloaded the JAXP from sun site from this URL:
http://java.sun.com/webservices/downloads/webservicespack.html
The download is called Java Web Services Developer Pack Download.
I have installed at D:\jwsdp-1_0
I have setup the autoexec.bat file to read the bin folder. and set the path also.
I am getting these errors:
Error: D:\westminster\Project\xml\Deitel-xml\chapter8-fig10\MyErrorHandler.java(4): Class org.xml.sax.ErrorHandler not found in import
Error: D:\westminster\Project\xml\Deitel-xml\chapter8-fig10\MyErrorHandler.java(5): Class org.xml.sax.SAXException not found in import
Error: D:\westminster\Project\xml\Deitel-xml\chapter8-fig10\MyErrorHandler.java(6): Class org.xml.sax.SAXParseException not found in import
Error: D:\westminster\Project\xml\Deitel-xml\chapter8-fig10\MyErrorHandler.java(8): Interface ErrorHandler of MyErrorHandler not found
Error: D:\westminster\Project\xml\Deitel-xml\chapter8-fig10\ReplaceText.java(5): Package org.w3c.dom not found in import
Error: D:\westminster\Project\xml\Deitel-xml\chapter8-fig10\ReplaceText.java(6): Package javax.xml.parsers not found in import
Error: D:\westminster\Project\xml\Deitel-xml\chapter8-fig10\ReplaceText.java(8): Package org.xml.sax not found in import
what can I do?
In Deitel book it mentions jaxp.jar and parser.jar files needed for the classpath.
However these files cannot be found when I did a search for it at: D:\jwsdp-1_0

What can I do?
 
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Download JAXP from java.sun.com( if you dont' have it already ).
Add the jarfiles to a directory under CLASSPATH.
 
sid alam
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
>Ajith Kallambella
>Download JAXP from java.sun.com( if you dont' have it already ).
>Add the jarfiles to a directory under CLASSPATH.

Please help I am befuddled.
As mention I have downloaded something which at the Sun website is called:
Java Web Services Developer Pack Download.
I have installed this at my drive d.
I have setup the path and classpath to read D:\jwsdp-1_0\bin
i.e bin files.
Note I am able to run and compile java programs i.e without these packages but when it comes to XML programs it does not compile.

I am running java compiler 1.3.1
Note at the Sun website there is a newer version.
Question:
1) Does this download have the required files or would I need to download a seperate JAXP?
2) In Deitel book it says I need to setup classpath to read jaxp.jar and parser.jar. In the download I have done i.e jwsdp-1_0 I have done a search and cannot find the files.
I am totally stupefied.
 
reply
    Bookmark Topic Watch Topic
  • New Topic