Just to check if it runs I tried to run my Java8 compiled application with the current Oracle JDK9 (9.0.1). When starting up guice gets a ClassNotFoundExceptionf for javax.annotation.PreDestroy which is contained in a jar on the classpath. I'm using the JSR-250 extensions: http://code.mycila.com/guice/
In Java8 it runs as usual. So I'm wondering why the JDK 9 is not backwards compatible just for the runtime environment. Have I missed something to get it to work? Or do I have to configure the module path and compile my application in Java9 to get it running with the Java9 runtime?
Here is the stack trace: (full part is here: https://pastebin.ca/3894786)
c.g.i.Guice An exception was caught and reported. Message: java.lang.ClassNotFoundException: javax.annotation.PreDestroy java.lang.TypeNotPresentException: Type javax.annotation.PreDestroy not present
at java.base/sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(Unknown Source)