Installer does not correctly detect java version

807 views
Skip to first unread message

Marcelo J. Ruiz

unread,
Jul 7, 2014, 3:29:44 PM7/7/14
to idem...@googlegroups.com
Hi everyone!

The process goes well until the installer tries to detect the java version:

Jul 07, 2014 1:58:52 PM org.compiere.install.ConfigVM test
INFO: OK: JavaHome=/usr/lib/jvm/java-8-oracle
JVM test fail: Wrong Java Version: Should be 1.6.0 and above.
Java Home [/usr/lib/jvm/java-8-oracle]:
Jul 07, 2014 1:58:52 PM org.compiere.install.ConfigVM test
INFO: OK: JavaHome=/usr/lib/jvm/java-8-oracle
JVM test fail: Wrong Java Version: Should be 1.6.0 and above.
Java Home [/usr/lib/jvm/java-8-oracle]:
Jul 07, 2014 1:58:52 PM org.compiere.install.ConfigVM test

I also tried running setup.sh, and selecting the correct java folder /usr/lib/jvm/java-6-oracle but the installer complaints about the version needed to be java 1.6.0 or above. Even making oracle java 6 the default java for the system does not help.
If I run in a terminal:

java -version

I get the following: 

java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)

Installing openjdk6 and openjdk7 gives me the same error.
There is a problem with how the installer detects the installed java version, because all java applications installed in this computer run without a problem.
Does anyone know how to solve this?
Thanks!

Angel Lara

unread,
Jul 8, 2014, 12:20:52 PM7/8/14
to idem...@googlegroups.com
You can check the file /home/$USER/.bashrc and see is there is a line setting a default Java Home path. 

Ahmed Elemam

unread,
Jul 12, 2014, 4:58:35 AM7/12/14
to idem...@googlegroups.com
Uninstall all JDK and re install it , maybe some conflict during installation
Reply all
Reply to author
Forward
0 new messages