[javaCompiler-users] compiles and executes but throws java exception --help
Status: Beta
Brought to you by:
soapy
From: Steven B. <dud...@gm...> - 2007-02-13 10:02:03
|
hi i have used JNC to compile a java app that does some xml parsing and transformation. my app references the javax.xml.parsers and javax.xml.transform, nothing fancy in there. it compiles fine but whenever i try to instantiate a SAXTransformerFactory in my java code, i get the following error (Trs_Main is the .exe) Exception in thread "main" javax.xml.transform.TransformerFactoryConfigurationError: gnu.xml.transform.TransformerFactoryImpl at java.lang.VMThrowable.fillInStackTrace(Trs_Main.exe) at java.lang.Throwable.<init>(Trs_Main.exe) at javax.xml.transform.TransformerFactory.newInstance(Trs_Main.exe) // i guess this is where the error comes from at asy.TrsToXML.split(Trs_Main.exe) also when i try to instantiate a SAXParserFactory object using "SAXParserFactory factory=SAXParserFactory.newInstance();" i get another error, probably related : Exception in thread "main" java.lang.NoClassDefFoundError: gnu.xml.stream.SAXParserFactory at javax.xml.parsers.SAXParserFactory.newInstance(Trs_Main.exe) im using jdk1.4.12 does this occur because JNC supports gnu's and not sun's SAX implementation? please tell me what to do, do i have to use gnu's SAX in order to get it to work? and if so please tell me where to find it. Thank you. Steven |