Re: package org.apache.xerces.parsers does not exist

Nuruthin Ahammed <[email protected]> Mon, 29 Nov 2004 05:39:49 -0000
Newsgroups gmane.comp.java.sun.xml.general
Message-ID <[email protected]>
The problem was the use of wildcars in setting jar files...

No=

 This is a multipart mime message


--Next_1101706789---0-203.199.83.27-28906
Content-type: text/plain;
        charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hi=0A=0AThe problem was the use of wildcars in setting jar files...=0A=0ANo=
w it Compiles well... Thnak for the help=0A=0Aregards=0ANuruthin=0A=0A=0A=
=0AOn Sun, 28 Nov 2004 KanjiSoft Systems wrote :=0A>This line from classpat=
h is incorrect:=0A>=0A>c:\HotApp\xerces\*.jar=0A>=0A>=0A>Jar file spec. can=
not have wildcard.=0A>=0A>mcd=0A>=0A>Nuruthin Ahammed wrote:=0A>=0A>>Hi,=0A=
>>=0A>>I am new to XML. And My Class path is like this=0A>>=0A>>=0A>>CLASSP=
ATH=3DC:\J2EE\lib\tools.jar;c:\Tomcat\common\lib\servlet.jar;c:\Tomcat\c=0A=
>>ommon\lib\mysql.jar;C:\Tomcat\webapps\rma\WEB-=0A>>INF\classes;c:\HotApp\=
xerces\*.jar;c:\=0A>>HotApp\xerces\xerces-1_4_4\samples;c:\HotApp\xerces\xe=
rces-1_4_4=0A>>\*.jar;c:\tomcat=0A>>\common\lib\*;.;set CATALINA_HOME =3D c=
:\Tomcat;=0A>>=0A>>And I have the jar files in correspoding folders.=0A>>=
=0A>>When I Compile a Java File which has got the xml implementaiton, it sh=
ows=0A>>compilation error at runtime.=0A>>---------------------------------=
------------------------------------------=0A>>C:\HotApp>javac PDAData.java=
=0A>>PDAData.java:36: package org.apache.xerces.parsers does not exist=0A>>=
import org.apache.xerces.parsers.DOMParser;=0A>>                           =
      ^=0A>>c:\HotApp\xerces\xerces-1_4_4\samples\ui\DOMParserSaveEncoding.=
java:63:=0A>>package=0A>>org.apache.xerces.readers does not exist=0A>>impor=
t org.apache.xerces.readers.MIME2Java;=0A>>                                =
 ^=0A>>c:\HotApp\xerces\xerces-1_4_4\samples\ui\DOMParserSaveEncoding.java:=
64:=0A>>package=0A>>org.apache.xerces.parsers does not exist=0A>>import org=
.apache.xerces.parsers.DOMParser;=0A>>                                 ^=0A=
>>c:\HotApp\xerces\xerces-1_4_4\samples\ui\DOMParserSaveEncoding.java:75:=
=0A>>cannot r=0A>>esolve symbol=0A>>symbol  : class DOMParser=0A>>location:=
 class ui.DOMParserSaveEncoding=0A>>public class DOMParserSaveEncoding exte=
nds DOMParser=0A>>                                           ^=0A>>PDAData.=
java:323: cannot resolve symbol=0A>>symbol  : method setErrorHandler (PDADa=
ta.ErrorStorer)=0A>>location: class PDAParserSaveEncoding=0A>>            p=
arser.setErrorHandler(ef);=0A>>                  ^=0A>>PDAData.java:324: ca=
nnot resolve symbol=0A>>symbol  : method setFeature (java.lang.String,boole=
an)=0A>>location: class PDAParserSaveEncoding=0A>>            parser.setFea=
ture("http://apache.org/xml/features/dom/defer-=0A>>node-exp=0A>>ansion", f=
alse); // otherwise parser.getCurrentNode() =3D=3D null=0A>>               =
   ^=0A>>PDAData.java:325: cannot resolve symbol=0A>>symbol  : method setFe=
ature (java.lang.String,boolean)=0A>>location: class PDAParserSaveEncoding=
=0A>>            parser.setFeature("http://apache.org/xml/features/continue=
-=0A>>after-fat=0A>>al-error", true);=0A>>                  ^=0A>>PDAData.j=
ava:326: cannot resolve symbol=0A>>symbol  : method setFeature (java.lang.S=
tring,boolean)=0A>>location: class PDAParserSaveEncoding=0A>>            pa=
rser.setFeature("http://apache.org/xml/features/allow-java-=0A>>encodin=0A>=
>gs", true);=0A>>                  ^=0A>>PDAData.java:327: cannot resolve s=
ymbol=0A>>symbol  : method parse (java.lang.String)=0A>>location: class PDA=
ParserSaveEncoding=0A>>            parser.parse(filename);=0A>>            =
      ^=0A>>PDAData.java:328: cannot resolve symbol=0A>>symbol  : method ge=
tDocument ()=0A>>location: class PDAParserSaveEncoding=0A>>            Docu=
ment document =3D parser.getDocument();=0A>>                               =
       ^=0A>>PDAData.java:421: cannot resolve symbol=0A>>symbol  : method g=
etProperty (java.lang.String)=0A>>location: class PDAParserSaveEncoding=0A>=
>              current =3D ( Node ) parser.getProperty=0A>>( "http://apache=
.org/xml/prop=0A>>erties/dom/current-element-node" );=0A>>                 =
                      ^=0A>>c:\HotApp\xerces\xerces-1_4_4\samples\ui\DOMPar=
serSaveEncoding.java:92:=0A>>cannot r=0A>>esolve symbol=0A>>symbol  : varia=
ble MIME2Java=0A>>location: class ui.DOMParserSaveEncoding=0A>>      else i=
f( ( javaEncoding =3D MIME2Java.convert( mimeEncoding ) ) =3D=3D=0A>>null )=
=0A>>                                ^=0A>>c:\HotApp\xerces\xerces-1_4_4\sa=
mples\ui\DOMParserSaveEncoding.java:104:=0A>>cannot=0A>>resolve symbol=0A>>=
symbol  : variable fStringPool=0A>>location: class ui.DOMParserSaveEncoding=
=0A>>         encoding            =3D fStringPool.toString( encodingIndex )=
;=0A>>                               ^=0A>>c:\HotApp\xerces\xerces-1_4_4\sa=
mples\ui\DOMParserSaveEncoding.java:108:=0A>>cannot=0A>>resolve symbol=0A>>=
symbol  : variable super=0A>>location: class ui.DOMParserSaveEncoding=0A>> =
     super.startDocument();=0A>>      ^=0A>>14 errors=0A>>-----------------=
-----------------------------------------------------------=0A>>Plese give =
a solution=0A>>=0A>>Thankx in advance=0A>>Nuruthin Ahammed=0A>>=0A>>-------=
----------------------------------------------=0A>>xml-interest: A list for=
 discussing XML technologies in the Java Platform.=0A>>To post, mailto:xml-=
[email protected]=0A>>Archives at: http://archives.java.sun.com/xml-int=
erest.html=0A>>To unsubscribe, mailto:[email protected] the following m=
essage;=0A>>signoff xml-interest.=0A>>=0A>>=0A>>=0A>>=0A>=0A>--------------=
---------------------------------------=0A>xml-interest: A list for discuss=
ing XML technologies in the Java Platform.=0A>To post, mailto:xml-interest@=
java.sun.com=0A>Archives at: http://archives.java.sun.com/xml-interest.html=
=0A>To unsubscribe, mailto:[email protected] the following message;=0A>=
signoff xml-interest.=0A

-----------------------------------------------------
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.
--Next_1101706789---0-203.199.83.27-28906
Content-type: text/html;
        charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

<P>=0AHi<BR>=0A<BR>=0AThe problem was the use of wildcars in setting jar fi=
les...<BR>=0A<BR>=0ANow it Compiles well... Thnak for the help<BR>=0A<BR>=
=0Aregards<BR>=0ANuruthin<BR>=0A<BR>=0A<BR>=0A<BR>=0AOn Sun, 28 Nov 2004 Ka=
njiSoft Systems wrote :<BR>=0A&gt;This line from classpath is incorrect:<BR=
>=0A&gt;<BR>=0A&gt;c:\HotApp\xerces\*.jar<BR>=0A&gt;<BR>=0A&gt;<BR>=0A&gt;J=
ar file spec. cannot have wildcard.<BR>=0A&gt;<BR>=0A&gt;mcd<BR>=0A&gt;<BR>=
=0A&gt;Nuruthin Ahammed wrote:<BR>=0A&gt;<BR>=0A&gt;&gt;Hi,<BR>=0A&gt;&gt;<=
BR>=0A&gt;&gt;I am new to XML. And My Class path is like this<BR>=0A&gt;&gt=
;<BR>=0A&gt;&gt;<BR>=0A&gt;&gt;CLASSPATH=3DC:\J2EE\lib\tools.jar;c:\Tomcat\=
common\lib\servlet.jar;c:\Tomcat\c<BR>=0A&gt;&gt;ommon\lib\mysql.jar;C:\Tom=
cat\webapps\rma\WEB-<BR>=0A&gt;&gt;INF\classes;c:\HotApp\xerces\*.jar;c:\<B=
R>=0A&gt;&gt;HotApp\xerces\xerces-1_4_4\samples;c:\HotApp\xerces\xerces-1_4=
_4<BR>=0A&gt;&gt;\*.jar;c:\tomcat<BR>=0A&gt;&gt;\common\lib\*;.;set CATALIN=
A_HOME =3D c:\Tomcat;<BR>=0A&gt;&gt;<BR>=0A&gt;&gt;And I have the jar files=
 in correspoding folders.<BR>=0A&gt;&gt;<BR>=0A&gt;&gt;When I Compile a Jav=
a File which has got the xml implementaiton, it shows<BR>=0A&gt;&gt;compila=
tion error at runtime.<BR>=0A&gt;&gt;--------------------------------------=
-------------------------------------<BR>=0A&gt;&gt;C:\HotApp&gt;javac PDAD=
ata.java<BR>=0A&gt;&gt;PDAData.java:36: package org.apache.xerces.parsers d=
oes not exist<BR>=0A&gt;&gt;import org.apache.xerces.parsers.DOMParser;<BR>=
=0A&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &=
nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ^<BR>=0A&gt;&gt;c:\HotApp\=
xerces\xerces-1_4_4\samples\ui\DOMParserSaveEncoding.java:63:<BR>=0A&gt;&gt=
;package<BR>=0A&gt;&gt;org.apache.xerces.readers does not exist<BR>=0A&gt;&=
gt;import org.apache.xerces.readers.MIME2Java;<BR>=0A&gt;&gt;&nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp=
; &nbsp; &nbsp; &nbsp;  ^<BR>=0A&gt;&gt;c:\HotApp\xerces\xerces-1_4_4\sampl=
es\ui\DOMParserSaveEncoding.java:64:<BR>=0A&gt;&gt;package<BR>=0A&gt;&gt;or=
g.apache.xerces.parsers does not exist<BR>=0A&gt;&gt;import org.apache.xerc=
es.parsers.DOMParser;<BR>=0A&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbs=
p; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ^=
<BR>=0A&gt;&gt;c:\HotApp\xerces\xerces-1_4_4\samples\ui\DOMParserSaveEncodi=
ng.java:75:<BR>=0A&gt;&gt;cannot r<BR>=0A&gt;&gt;esolve symbol<BR>=0A&gt;&g=
t;symbol&nbsp; : class DOMParser<BR>=0A&gt;&gt;location: class ui.DOMParser=
SaveEncoding<BR>=0A&gt;&gt;public class DOMParserSaveEncoding extends DOMPa=
rser<BR>=0A&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp=
; &nbsp; &nbsp;  ^<BR>=0A&gt;&gt;PDAData.java:323: cannot resolve symbol<BR=
>=0A&gt;&gt;symbol&nbsp; : method setErrorHandler (PDAData.ErrorStorer)<BR>=
=0A&gt;&gt;location: class PDAParserSaveEncoding<BR>=0A&gt;&gt;&nbsp; &nbsp=
; &nbsp; &nbsp; &nbsp; &nbsp; parser.setErrorHandler(ef);<BR>=0A&gt;&gt;&nb=
sp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^<BR>=0A&gt;&gt=
;PDAData.java:324: cannot resolve symbol<BR>=0A&gt;&gt;symbol&nbsp; : metho=
d setFeature (java.lang.String,boolean)<BR>=0A&gt;&gt;location: class PDAPa=
rserSaveEncoding<BR>=0A&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pa=
rser.setFeature(&quot;http://apache.org/xml/features/dom/defer-<BR>=0A&gt;&=
gt;node-exp<BR>=0A&gt;&gt;ansion&quot;, false); // otherwise parser.getCurr=
entNode() =3D=3D null<BR>=0A&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbs=
p; &nbsp; &nbsp; &nbsp; ^<BR>=0A&gt;&gt;PDAData.java:325: cannot resolve sy=
mbol<BR>=0A&gt;&gt;symbol&nbsp; : method setFeature (java.lang.String,boole=
an)<BR>=0A&gt;&gt;location: class PDAParserSaveEncoding<BR>=0A&gt;&gt;&nbsp=
; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; parser.setFeature(&quot;http://apache.=
org/xml/features/continue-<BR>=0A&gt;&gt;after-fat<BR>=0A&gt;&gt;al-error&q=
uot;, true);<BR>=0A&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=
 &nbsp; &nbsp; ^<BR>=0A&gt;&gt;PDAData.java:326: cannot resolve symbol<BR>=
=0A&gt;&gt;symbol&nbsp; : method setFeature (java.lang.String,boolean)<BR>=
=0A&gt;&gt;location: class PDAParserSaveEncoding<BR>=0A&gt;&gt;&nbsp; &nbsp=
; &nbsp; &nbsp; &nbsp; &nbsp; parser.setFeature(&quot;http://apache.org/xml=
/features/allow-java-<BR>=0A&gt;&gt;encodin<BR>=0A&gt;&gt;gs&quot;, true);<=
BR>=0A&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp=
; ^<BR>=0A&gt;&gt;PDAData.java:327: cannot resolve symbol<BR>=0A&gt;&gt;sym=
bol&nbsp; : method parse (java.lang.String)<BR>=0A&gt;&gt;location: class P=
DAParserSaveEncoding<BR>=0A&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp=
; parser.parse(filename);<BR>=0A&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; ^<BR>=0A&gt;&gt;PDAData.java:328: cannot resolv=
e symbol<BR>=0A&gt;&gt;symbol&nbsp; : method getDocument ()<BR>=0A&gt;&gt;l=
ocation: class PDAParserSaveEncoding<BR>=0A&gt;&gt;&nbsp; &nbsp; &nbsp; &nb=
sp; &nbsp; &nbsp; Document document =3D parser.getDocument();<BR>=0A&gt;&gt=
;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbs=
p; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^<BR>=0A&gt;&gt;=
PDAData.java:421: cannot resolve symbol<BR>=0A&gt;&gt;symbol&nbsp; : method=
 getProperty (java.lang.String)<BR>=0A&gt;&gt;location: class PDAParserSave=
Encoding<BR>=0A&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cur=
rent =3D ( Node ) parser.getProperty<BR>=0A&gt;&gt;( &quot;http://apache.or=
g/xml/prop<BR>=0A&gt;&gt;erties/dom/current-element-node&quot; );<BR>=0A&gt=
;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ^<BR>=0A&gt=
;&gt;c:\HotApp\xerces\xerces-1_4_4\samples\ui\DOMParserSaveEncoding.java:92=
:<BR>=0A&gt;&gt;cannot r<BR>=0A&gt;&gt;esolve symbol<BR>=0A&gt;&gt;symbol&n=
bsp; : variable MIME2Java<BR>=0A&gt;&gt;location: class ui.DOMParserSaveEnc=
oding<BR>=0A&gt;&gt;&nbsp; &nbsp; &nbsp; else if( ( javaEncoding =3D MIME2J=
ava.convert( mimeEncoding ) ) =3D=3D<BR>=0A&gt;&gt;null )<BR>=0A&gt;&gt;&nb=
sp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &=
nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^<BR>=0A&gt;&gt;c:\HotApp\xerces\xerces-1=
_4_4\samples\ui\DOMParserSaveEncoding.java:104:<BR>=0A&gt;&gt;cannot<BR>=0A=
&gt;&gt;resolve symbol<BR>=0A&gt;&gt;symbol&nbsp; : variable fStringPool<BR=
>=0A&gt;&gt;location: class ui.DOMParserSaveEncoding<BR>=0A&gt;&gt;&nbsp; &=
nbsp; &nbsp; &nbsp;  encoding&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =3D =
fStringPool.toString( encodingIndex );<BR>=0A&gt;&gt;&nbsp; &nbsp; &nbsp; &=
nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=
 &nbsp;  ^<BR>=0A&gt;&gt;c:\HotApp\xerces\xerces-1_4_4\samples\ui\DOMParser=
SaveEncoding.java:108:<BR>=0A&gt;&gt;cannot<BR>=0A&gt;&gt;resolve symbol<BR=
>=0A&gt;&gt;symbol&nbsp; : variable super<BR>=0A&gt;&gt;location: class ui.=
DOMParserSaveEncoding<BR>=0A&gt;&gt;&nbsp; &nbsp; &nbsp; super.startDocumen=
t();<BR>=0A&gt;&gt;&nbsp; &nbsp; &nbsp; ^<BR>=0A&gt;&gt;14 errors<BR>=0A&gt=
;&gt;----------------------------------------------------------------------=
------<BR>=0A&gt;&gt;Plese give a solution<BR>=0A&gt;&gt;<BR>=0A&gt;&gt;Tha=
nkx in advance<BR>=0A&gt;&gt;Nuruthin Ahammed<BR>=0A&gt;&gt;<BR>=0A&gt;&gt;=
-----------------------------------------------------<BR>=0A&gt;&gt;xml-int=
erest: A list for discussing XML technologies in the Java Platform.<BR>=0A&=
gt;&gt;To post, mailto:[email protected]<BR>=0A&gt;&gt;Archives at:=
 http://archives.java.sun.com/xml-interest.html<BR>=0A&gt;&gt;To unsubscrib=
e, mailto:[email protected] the following message;<BR>=0A&gt;&gt;signof=
f xml-interest.<BR>=0A&gt;&gt;<BR>=0A&gt;&gt;<BR>=0A&gt;&gt;<BR>=0A&gt;&gt;=
<BR>=0A&gt;<BR>=0A&gt;-----------------------------------------------------=
<BR>=0A&gt;xml-interest: A list for discussing XML technologies in the Java=
 Platform.<BR>=0A&gt;To post, mailto:[email protected]<BR>=0A&gt;Ar=
chives at: http://archives.java.sun.com/xml-interest.html<BR>=0A&gt;To unsu=
bscribe, mailto:[email protected] the following message;<BR>=0A&gt;sign=
off xml-interest.<BR>=0A=0A</P>=0A<br><br>=0A<A target=3D"_blank" HREF=3D"h=
ttp://clients.rediff.com/signature/track_sig.asp"><IMG SRC=3D"http://ads.re=
diff.com/RealMedia/ads/adstream_nx.cgi/www.rediffmail.com/inbox.htm@Bottom"=
 BORDER=3D0 VSPACE=3D0 HSPACE=3D0></a>=0A
-----------------------------------------------------
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.
--Next_1101706789---0-203.199.83.27-28906--