JAR Files Required to Run sax\Counter.java
What JAR files are required to run sax\Counter.java provided in the Apache Xerces package?
You can follow this toturial to find out what JAR files are required to run sax\Counter.java provided in the Apache Xerces package.
1. Create an XML file in the \fyicenter\xerces-2_11_0\ folder:
\fyicenter\xerces-2_11_0\samples>type User.xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <!-- Copyright (c) 2017 FYIcenter.com --> <User> <ID>101</ID> <BirthDate>1970-01-01+00:01</BirthDate> <Name>Frank Y. Ivy</Name> <Sex> Male</Sex> </User>
2. Compile the sax\Counter.java and run it. Execution fails with missing org.apache.xerces.parsers.SAXParser:
\fyicenter\xerces-2_11_0\samples>\fyicenter\jdk-1.8.0\bin\javac sax\Counter.java Note: sax\Counter.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. \fyicenter\xerces-2_11_0\samples>\fyicenter\jdk-1.8.0\bin\java -cp . sax.Counter User.xml error: Unable to instantiate parser (org.apache.xerces.parsers.SAXParser)
3. Run it again with xercesImpl.jar. Execution fails with missing org.apache.xerces.parsers.DOMParser class:
\fyicenter\xerces-2_11_0\samples>\fyicenter\jdk-1.8.0\bin\java -cp .;..\xercesImpl.jar sax.Counter User.xml User.xml: 0 ms (5 elems, 0 attrs, 0 spaces, 58 chars)
1 JAR file is needed to run dom.Counter: xercesImpl.jar.
2017-10-23, 1312👍, 0💬
MXP1 is a stable XmlPull parsing engine that is based on ideas from XPP and in particular XPP2 but c...
What Is activation.jar? I heard it's related to JAF (JavaBeans Activation Framework) 1.0.2? The if y...
What Is mail.jar of JavaMail 1.4? I got the JAR file from javamail-1_4.zip. mail.jar in javamail-1_4...
The Bouncy Castle Crypto package is a Java implementation of cryptographic algorithms, it was develo...
What Is javamail1_1_3.zip? javamail1_1_3.zip is the binary package of JavaMail API 1.1.3 in ZIP form...