problem importing JDOM with NetBeans 6.8
807580Feb 7 2010 — edited Feb 8 2010Hi
I am using the JMathTeX package which requires JDOM 1.0 I downloaded jdom-1.1.1.zip file, unzipped it, and then zipped jdom\src\java\org folder, which I added as a library. The import statement I use is
import org.jdom.*;
When I run it displays the following:
run:
Exception in thread "main" java.lang.ExceptionInInitializerError
at mp.mathdisplay.FormulaDisplay.main(FormulaDisplay.java:28)
Caused by: be.ugent.caagt.jmathtex.XMLResourceParseException: TeXFormulaSettings.xml
at be.ugent.caagt.jmathtex.TeXFormulaSettingsParser.<init>(TeXFormulaSettingsParser.java:55)
at be.ugent.caagt.jmathtex.TeXFormula.<clinit>(TeXFormula.java:114)
... 1 more
Caused by: org.jdom.JDOMException: Could not load default SAX parser: org.apache.xerces.parsers.SAXParser: SAX2 driver class org.apache.xerces.parsers.SAXParser not found: org.apache.xerces.parsers.SAXParser
at org.jdom.input.SAXBuilder.createParser(SAXBuilder.java:649)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:489)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:865)
at be.ugent.caagt.jmathtex.TeXFormulaSettingsParser.<init>(TeXFormulaSettingsParser.java:50)
... 2 more
Caused by: java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
at org.xml.sax.helpers.XMLReaderFactory.loadClass(XMLReaderFactory.java:189)
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:180)
at org.jdom.input.SAXBuilder.createParser(SAXBuilder.java:641)
... 5 more
Java Result: 1
BUILD SUCCESSFUL (total time: 5 seconds)
I assume the problem is that there is no org.apache folder in the jar file. Where could I get the proper jar/zip file to add as a library?
I would be gratefull for any help
thanx
Ruskin