See, this is the code:
Expand|Select|Wrap|Line Numbers
- public class Ejemplo
- {
- public static void main(String[] args)
- {
- try
- {
- SAXBuilder builder=new SAXBuilder(true);
- Document doc=builder.build(new File("liga.xml")); //here's where it signals the error
- .
- .
- .
org.jdom.JDOMEx ception: Could not load default SAX parser: org.apache.xerc es.par
sers.SAXParser: SAX2 driver class org.apache.xerc es.parsers.SAXP arser not found:
org.apache.xerc es.parsers.SAXP arser
at org.jdom.input. SAXBuilder.crea teParser(SAXBui lder.java:581)
at org.jdom.input. SAXBuilder.buil d(SAXBuilder.ja va:424)
at org.jdom.input. SAXBuilder.buil d(SAXBuilder.ja va:810)
at org.jdom.input. SAXBuilder.buil d(SAXBuilder.ja va:789)
at Ejemplo.main(Ej emplo.java:15)
Caused by: java.lang.Class NotFoundExcepti on: org.apache.xerc es.parsers.SAXP arser
I just don't know what's wrong... Is it that I don't have the JDOM right?