Run tests with JDK9 and version 2.14

(Horcrux7) #1

Is it possible to run Tests with Java 9? We want check if our application is compatible with the coming Java 9. We does not need any Java 9 features. We have simple set the executable for the test task. We have try the current version 2.14 without any luck.

Error occurred during initialization of VM
java.lang.ClassCastException: jdk.internal.loader.ClassLoaders$AppClassLoader (in module: java.base) cannot be cast to (in module: java.base)
    at java.lang.SecurityManager.checkPropertyAccess(java.base@9-ea/
    at java.lang.System.getProperty(java.base@9-ea/
    at java.lang.ClassLoader.initSystemClassLoader(java.base@9-ea/
    at java.lang.System.initPhase3(java.base@9-ea/

Could not write standard input into: Gradle Test Executor 1. Die Pipe wird gerade geschlossen
    at Method)
    at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(
    at org.gradle.internal.concurrent.StoppableExecutorImpl$
    at java.util.concurrent.ThreadPoolExecutor.runWorker(
    at java.util.concurrent.ThreadPoolExecutor$

(Eric Wendelin) #2

Good news, everyone.

We just released Gradle 3.0 M2 with initial Java 9 support.

Please give it a try and let us know if it’s not working for you.

(Horcrux7) #3

Thanks for the hint. I have try it and post the first error with the jacoco plugin: Jacoco plugin does not work with Java 9