I've been compiling up my own OpenJDks with the openjdkathome project and maven seems to work fine with:

openjdk version "1.8.0-jdk8-b108"
OpenJDK Runtime Environment (build 1.8.0-jdk8-b108-20130923)
OpenJDK 64-Bit Server VM (build 25.0-b50, mixed mode)

downloading the 8u40 binary builds to test as well - well, 8u40 seems to work fine...

Running with JDK9 and -X to see some more information I see

[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.15:test (default-test) on project smx3.mounting: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.15:test failed: The forked VM terminated without saying properly goodbye. VM crash or System.exit called ? Command was/bin/sh -c cd /Users/amrk/IdeaProjects/securemx/smx3/smx3-core/smx3.mounting && /Library/Java/JavaVirtualMachines/jdk1.9.0.jdk/Contents/Home/jre/bin/java -Djava.awt.headless=true -Xmx256m -XX:MaxPermSize=128m -jar /Users/amrk/IdeaProjects/securemx/smx3/smx3-core/smx3.mounting/target/surefire/surefirebooter1114692740948683721.jar /Users/amrk/IdeaProjects/securemx/smx3/smx3-core/smx3.mounting/target/surefire/surefire5618593873694695272tmp /Users/amrk/IdeaProjects/securemx/smx3/smx3-core/smx3.mounting/target/surefire/surefire_05290447574825566074tmp


It looks like calling with "-XX:MaxPermSize=128m" causes JDK9 to die.

/Library/Java/JavaVirtualMachines/jdk1.9.0.jdk/Contents/Home/jre/bin/java -Djava.awt.headless=true -Xmx256m -XX:MaxPermSize=128m -version
Unrecognized VM option 'MaxPermSize=128m'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Should this actually crash and die, or should it just log the "Unrecognised option" warning, and continue running? Fast fail is nice, but not much if you're jumping between VMs.

Mark

On 16 Sep 2014, at 21:49, Rory O'Donnell Oracle, Dublin Ireland wrote:

Hi Mark,

Nothing obvious there, can you try with an 8u40 build ?

Rgds,Rory

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to