由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - java & XML 2 example problem
相关主题
Java XML parser的问题[转载] a question on XML parser
入门Java CLASSPATH问题:Axis vs. XFire?
一个怪异的java 运行问题CookXml 简介
JSP How to Invoke the Specific version of Xerces-Jxml to PDF的package
ant javac error in eclipse 3.0?Java处理XML
Re: Where can i find this package?简单算法问题
Re: [转载] Re: why do u use XML?Re: How to compile a Java program with import my own package in UNIX
Configuration File reading.. xml?JavaCC/SableCC/otherCC ?
相关话题的讨论汇总
话题: xml话题: java话题: xerces话题: example话题: ch03
进入Java版参与讨论
1 (共1页)
c*******d
发帖数: 353
1
In "Java & XML 2" I tried to follow the example
in Chapter 3. I downloaded the parser packages from apache website but I
couldn't find the mentioned xerces.jar file instead all evidence points to
xml-apis.jar. The code compiles ok but when I tried to run it, here is the
error message:
~/source_code/java/javaxml2/ch03/src]60: java -classpath
"../../lib/xerces-2_6_2/:." javaxml2.SAXTreeViewer ../xml/contents.xml
java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
at
org.x
r********u
发帖数: 3
2
try
~/source_code/java/javaxml2/ch03/src]60: java -classpath "../../lib/xerces-2_6_2/xml-apis.jar:." javaxml2.SAXTreeViewer ../xml/contents.xml
^^^^^^^^^^^

【在 c*******d 的大作中提到】
: In "Java & XML 2" I tried to follow the example
: in Chapter 3. I downloaded the parser packages from apache website but I
: couldn't find the mentioned xerces.jar file instead all evidence points to
: xml-apis.jar. The code compiles ok but when I tried to run it, here is the
: error message:
: ~/source_code/java/javaxml2/ch03/src]60: java -classpath
: "../../lib/xerces-2_6_2/:." javaxml2.SAXTreeViewer ../xml/contents.xml
: java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
: at
: org.x

c*****s
发帖数: 214
3
xerces-api只是API,没有完全实现,还需要有个xercesImpl
http://www.ibiblio.org/maven/xerces/jars/ 有你需要的Jar

org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:121

【在 c*******d 的大作中提到】
: In "Java & XML 2" I tried to follow the example
: in Chapter 3. I downloaded the parser packages from apache website but I
: couldn't find the mentioned xerces.jar file instead all evidence points to
: xml-apis.jar. The code compiles ok but when I tried to run it, here is the
: error message:
: ~/source_code/java/javaxml2/ch03/src]60: java -classpath
: "../../lib/xerces-2_6_2/:." javaxml2.SAXTreeViewer ../xml/contents.xml
: java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
: at
: org.x

1 (共1页)
进入Java版参与讨论
相关主题
JavaCC/SableCC/otherCC ?ant javac error in eclipse 3.0?
[转载] Anybody tried "gcj"?Re: Where can i find this package?
JBuilder questionRe: [转载] Re: why do u use XML?
another question driving me crazy...Configuration File reading.. xml?
Java XML parser的问题[转载] a question on XML parser
入门Java CLASSPATH问题:Axis vs. XFire?
一个怪异的java 运行问题CookXml 简介
JSP How to Invoke the Specific version of Xerces-Jxml to PDF的package
相关话题的讨论汇总
话题: xml话题: java话题: xerces话题: example话题: ch03