-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Java 9 IllegalArgumentException #10
Comments
Exception is simply true. |
java -cp levigo-jbig2-imageio-1.6.5.jar:pdf-box-svn/app/target/pdfbox-app-2.1.0-SNAPSHOT.jar org.apache.pdfbox.tools.PDFToImage sigice9_172.Adobe.pdf pdf from https://issues.apache.org/jira/browse/PDFBOX-81 Exception in thread "main" java.lang.ExceptionInInitializerError |
Please reopen. Here's some more:
run this on JDK9 early access (you can build on a lower system), and this is the stack trace you'll get:
|
Java 9 compiler doesn't support source and target level Java 5 (1.5) anymore. Java 6 (1.6) is deprecated. This commit lifts the source and target configuration to Java 7 (1.7). Releasing this breaks support of Java 6 and below. (issue #10)
Lift source and target configuration of maven-compiler-plugin
Travis CI does not yet support Java 9. The test will be done manually beside the usual CI. I opened a follow-up issue - see #17. |
In Java 9, `javax.imageio.spi.ServiceRegistry` checks if the requested service is an implementation of the Image I/O service provider interface. This module used the Image I/O service registry for loading external utility services like logging and caching. This is not an intended use and is now prohibited by the Java 9 runtime. `javax.imageio.spi.ServiceRegistry` uses 'java.util.ServiceLoader' internally. The lookups done by `javax.imageio.spi.ServiceRegistry` are replaced by that of 'java.util.ServiceLoader'. This fixes issue #10.
…h-ServiceLoader-#10 Use general service loading instead of Image I/O-specific
Sorry for posting here. I've not yet found this error elsewhere in the web. @THausherr or @krzikams did you found a solution for this problem on JDK9? We get this when we add geotools to our dependencies, see here: https://travis-ci.org/graphhopper/graphhopper/jobs/176670700 We've managed to setup a travis build which fetches JDK9 (maybe interesting for your #17), see here: graphhopper/graphhopper#806 Sorry, it looks like you fixed your problem with #18, will see how we can use this information. |
Caused by: java.lang.IllegalArgumentException: com.levigo.jbig2.util.log.LoggerBridge is not an ImageIO SPI class
at javax.imageio.spi.ServiceRegistry.checkClassAllowed(java.desktop@9-ea/ServiceRegistry.java:733)
The text was updated successfully, but these errors were encountered: