| Summary: | emerge of dev-java/batik-1.6 fails with "java.lang.UnsupportedClassVersionError" | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | matthew.cline |
| Component: | Current packages | Assignee: | Java team <java> |
| Status: | RESOLVED INVALID | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | patch that changes RDEPEND from rhino-1.5 to rhino-1.6 | ||
|
Description
matthew.cline
2006-02-09 17:55:33 UTC
I think this has something to do with rhino. If I change the DEPEND in the ebuild from rhino-1.5 to rhino-1.6, then the package builds just fine. Created attachment 79400 [details, diff]
patch that changes RDEPEND from rhino-1.5 to rhino-1.6
patch that changes RDEPEND from rhino-1.5 to rhino-1.6
OK, the package builds fine with the patch, but I get this error when I try to run the SVG browser: java.io.IOException: SAX2 driver class org.apache.xerces.parsers.SAXParser not found at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(Unknown Source) at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(Unknown Source) at org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(Unknown Source) at org.apache.batik.dom.svg.SAXSVGDocumentFactory.createSVGDocument(Unknown Source) at org.apache.batik.bridge.DocumentLoader.loadDocument(Unknown Source) at org.apache.batik.swing.svg.SVGDocumentLoader.run(Unknown Source) I believe that this is the same error as reported in bug #116976 I am sure that I have the necessary class in my $CLASSPATH: $ java-config -p | tr ':' '\n' | grep xerces /usr/share/xerces-2/lib/xml-apis.jar /usr/share/xerces-2/lib/xercesImpl.jar /usr/share/xerces-2/lib/xercesSamples.jar /usr/share/xerces-2/lib/xmlParserAPIs.jar $ java -verbose org.apache.xerces.parsers.SAXParser | grep SAXParser [Loaded org.apache.xerces.parsers.AbstractSAXParser] [Loaded org.apache.xerces.parsers.SAXParser] [Loaded org.apache.xerces.parsers.AbstractSAXParser$2] [Loaded org.apache.xerces.parsers.AbstractSAXParser$1] Exception in thread "main" java.lang.NoSuchMethodError: main This error occurs when you have compiled some packages with Java 1.5 (which is package.mask'd), and then you try to emerge packages which depend on the first package with Java 1.5. Please see http://www.gentoo.org/proj/en/java/tiger-faq.xml. |