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/server.sh 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(RequirementChecker.java:35)
	at com.enonic.xp.launcher.env.RequirementChecker.checkJavaVersion(RequirementChecker.java:29)
	at com.enonic.xp.launcher.env.RequirementChecker.check(RequirementChecker.java:16)
	at com.enonic.xp.launcher.Launcher.checkRequirements(Launcher.java:45)
	at com.enonic.xp.launcher.Launcher.start(Launcher.java:111)
	at com.enonic.xp.launcher.LauncherMain.main(LauncherMain.java:10)
Exception in thread "Thread-0" java.lang.NullPointerException
	at com.enonic.xp.launcher.Launcher.stop(Launcher.java:123)
	at com.enonic.xp.launcher.LauncherMain$$Lambda$1/884457408.run(Unknown Source)
	at java.lang.Thread.run(Thread.java:745)

➜  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
/usr/lib/jvm/java-8-openjdk-amd64

➜  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/.

Hi.

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.

BR,
Sten Roger

2 Likes

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:
http://repo.enonic.com/public/com/enonic/xp/distro/6.1.0-SNAPSHOT/distro-6.1.0-SNAPSHOT.zip

BR,
Sten Roger

2 Likes