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=C:\J2EE\lib\tools.jar;c:\Tomcat\common\lib\servlet.jar;c:\Tomcat\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 = 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() == 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 = parser.getDocument();
^
PDAData.java:421: cannot resolve symbol
symbol : method getProperty (java.lang.String)
location: class PDAParserSaveEncoding
current = ( 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 = MIME2Java.convert( mimeEncoding ) ) ==
null )
^
c:\HotApp\xerces\xerces-1_4_4\samples\ui\DOMParserSaveEncoding.java:104:
cannot
resolve symbol
symbol : variable fStringPool
location: class ui.DOMParserSaveEncoding
encoding = 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:xml-interest@xxxxxxxxxxxx
Archives at: http://archives.java.sun.com/xml-interest.html
To unsubscribe, mailto:listserv@xxxxxxxxxxxx the following message;
signoff xml-interest.
-----------------------------------------------------
xml-interest: A list for discussing XML technologies in the Java Platform.
To post, mailto:xml-interest@xxxxxxxxxxxx
Archives at: http://archives.java.sun.com/xml-interest.html
To unsubscribe, mailto:listserv@xxxxxxxxxxxx the following message;
signoff xml-interest.
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|