Java 1.8.0_45-internal-b14 not recognized as Java 1.8 update 40+

Enonic version: Enonic XP 6.0.0
OS: Ubuntu 15.04

➜  enonic-xp-6.0.0  bin/ debug   
Listening for transport dt_socket at address: 5005
Exception in thread "main" com.enonic.xp.launcher.LauncherException: Java 1.8 update 40 and above is required. You are running 1.8.0_45-internal.
	at com.enonic.xp.launcher.env.RequirementChecker.throwJavaVersionRequirements(
	at com.enonic.xp.launcher.env.RequirementChecker.checkJavaVersion(
	at com.enonic.xp.launcher.env.RequirementChecker.check(
	at com.enonic.xp.launcher.Launcher.checkRequirements(
	at com.enonic.xp.launcher.Launcher.start(
	at com.enonic.xp.launcher.LauncherMain.main(
Exception in thread "Thread-0" java.lang.NullPointerException
	at com.enonic.xp.launcher.Launcher.stop(
	at com.enonic.xp.launcher.LauncherMain$$Lambda$1/ Source)

➜  enonic-xp-6.0.0  java -version
openjdk version "1.8.0_45-internal"
OpenJDK Runtime Environment (build 1.8.0_45-internal-b14)
OpenJDK 64-Bit Server VM (build 25.45-b02, mixed mode)

➜  enonic-xp-6.0.0  echo $JAVA_HOME

➜  enonic-xp-6.0.0  lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 15.04
Release:	15.04
Codename:	vivid

➜  enonic-xp-6.0.0  uname -a
Linux jostein 3.19.0-26-generic #28-Ubuntu SMP Tue Aug 11 14:16:32 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

There’s no logfile under ${xp.home}/logs/.


I see that the reported version is “1.8.0_45-internal”. Our code that checks this has to parse the version and we did not expect the JDK versions to have “-XXX” behind it.

We will fix this for 6.1. While you wait you could try Oracle’s JDK above 1.8u40.

Sten Roger


It should now be fixed in 6.1. Thanks for reporting the error. We have not tested the product using OpenJDK yet, but I think it’s time for us to start using it.

You can download 6.1-SNAPSHOT from our repository:

Sten Roger