Re: package org.apache.xerces.parsers does not exist
Brian Martin <[email protected]> Sun, 28 Nov 2004 07:16:34 -0800
| Newsgroups | gmane.comp.java.sun.xml.general |
|---|---|
| Message-ID | <[email protected]> |
Use ANT for your builds.=20 It will make these long classpaths more manageable. -----Original Message----- From: XML technologies in the Java Platform [mailto:[email protected]]On Behalf Of KanjiSoft Systems Sent: Sunday, November 28, 2004 9:03 AM To: [email protected] Subject: Re: package org.apache.xerces.parsers does not exist This line from classpath is incorrect: c:\HotApp\xerces\*.jar Jar file spec. cannot have wildcard. mcd Nuruthin Ahammed wrote: >Hi, > >I am new to XML. And My Class path is like this > > >CLASSPATH=3DC:\J2EE\lib\tools.jar;c:\Tomcat\common\lib\servlet.jar;c:\To= mcat\c >ommon\lib\mysql.jar;C:\Tomcat\webapps\rma\WEB- >INF\classes;c:\HotApp\xerces\*.jar;c:\ >HotApp\xerces\xerces-1_4_4\samples;c:\HotApp\xerces\xerces-1_4_4 >\*.jar;c:\tomcat >\common\lib\*;.;set CATALINA_HOME =3D c:\Tomcat; > >And I have the jar files in correspoding folders. > >When I Compile a Java File which has got the xml implementaiton, it = shows >compilation error at runtime. >------------------------------------------------------------------------= --- >C:\HotApp>javac PDAData.java >PDAData.java:36: package org.apache.xerces.parsers does not exist >import org.apache.xerces.parsers.DOMParser; > ^ >c:\HotApp\xerces\xerces-1_4_4\samples\ui\DOMParserSaveEncoding.java:63: >package >org.apache.xerces.readers does not exist >import org.apache.xerces.readers.MIME2Java; > ^ >c:\HotApp\xerces\xerces-1_4_4\samples\ui\DOMParserSaveEncoding.java:64: >package >org.apache.xerces.parsers does not exist >import org.apache.xerces.parsers.DOMParser; > ^ >c:\HotApp\xerces\xerces-1_4_4\samples\ui\DOMParserSaveEncoding.java:75: >cannot r >esolve symbol >symbol : class DOMParser >location: class ui.DOMParserSaveEncoding >public class DOMParserSaveEncoding extends DOMParser > ^ >PDAData.java:323: cannot resolve symbol >symbol : method setErrorHandler (PDAData.ErrorStorer) >location: class PDAParserSaveEncoding > parser.setErrorHandler(ef); > ^ >PDAData.java:324: cannot resolve symbol >symbol : method setFeature (java.lang.String,boolean) >location: class PDAParserSaveEncoding > = parser.setFeature("http://apache.org/xml/features/dom/defer- >node-exp >ansion", false); // otherwise parser.getCurrentNode() =3D=3D null > ^ >PDAData.java:325: cannot resolve symbol >symbol : method setFeature (java.lang.String,boolean) >location: class PDAParserSaveEncoding > parser.setFeature("http://apache.org/xml/features/continue- >after-fat >al-error", true); > ^ >PDAData.java:326: cannot resolve symbol >symbol : method setFeature (java.lang.String,boolean) >location: class PDAParserSaveEncoding > = parser.setFeature("http://apache.org/xml/features/allow-java- >encodin >gs", true); > ^ >PDAData.java:327: cannot resolve symbol >symbol : method parse (java.lang.String) >location: class PDAParserSaveEncoding > parser.parse(filename); > ^ >PDAData.java:328: cannot resolve symbol >symbol : method getDocument () >location: class PDAParserSaveEncoding > Document document =3D parser.getDocument(); > ^ >PDAData.java:421: cannot resolve symbol >symbol : method getProperty (java.lang.String) >location: class PDAParserSaveEncoding > current =3D ( Node ) parser.getProperty >( "http://apache.org/xml/prop >erties/dom/current-element-node" ); > ^ >c:\HotApp\xerces\xerces-1_4_4\samples\ui\DOMParserSaveEncoding.java:92: >cannot r >esolve symbol >symbol : variable MIME2Java >location: class ui.DOMParserSaveEncoding > else if( ( javaEncoding =3D MIME2Java.convert( mimeEncoding ) ) = =3D=3D >null ) > ^ >c:\HotApp\xerces\xerces-1_4_4\samples\ui\DOMParserSaveEncoding.java:104:= >cannot >resolve symbol >symbol : variable fStringPool >location: class ui.DOMParserSaveEncoding > encoding =3D fStringPool.toString( encodingIndex ); > ^ >c:\HotApp\xerces\xerces-1_4_4\samples\ui\DOMParserSaveEncoding.java:108:= >cannot >resolve symbol >symbol : variable super >location: class ui.DOMParserSaveEncoding > super.startDocument(); > ^ >14 errors >------------------------------------------------------------------------= ---- >Plese give a solution > >Thankx in advance >Nuruthin Ahammed > >----------------------------------------------------- >xml-interest: A list for discussing XML technologies in the Java = Platform. >To post, mailto:[email protected] >Archives at: http://archives.java.sun.com/xml-interest.html >To unsubscribe, mailto:[email protected] the following message; >signoff xml-interest. > > > > ----------------------------------------------------- xml-interest: A list for discussing XML technologies in the Java = Platform. To post, mailto:[email protected] Archives at: http://archives.java.sun.com/xml-interest.html To unsubscribe, mailto:[email protected] the following message; signoff xml-interest. ----------------------------------------------------- xml-interest: A list for discussing XML technologies in the Java Platform. To post, mailto:[email protected] Archives at: http://archives.java.sun.com/xml-interest.html To unsubscribe, mailto:[email protected] the following message; signoff xml-interest.