Installation error

Not applicable

Seeing the below error while doing 15.04 installation .

Is 1.7 not supported ?

Please enter Oracle JDK 1.6 home (/usr/java/default): /usr/bin/java java environment is OK (arch, vendor, version) WARNING: JAVA_HOME selecting different java than is on PATH JAVA_HOME value is /root/jdk1.7.0_79/bin JAVA_HOME points at /root/jdk1.7.0_79/bin java on path is at /root/jdk1.7.0_79/bin/java Java verification failed.

Exit code: 32 Please install the correct version of Java before running this script.

0 4 320
4 REPLIES 4

Not applicable

Hi @Rangaraya S Komaragiri , can you check if you are installing 15.04 ?

You should see the below if you are using 15.04

Please enter Oracle JDK 1.6 or Oracle JDK 1.7 home (/usr/java/default): but I see only 1.6 in your case .

Not applicable

I have the same error as you. I'm running the installer in Centos 7 inside Oracle Virtual Box VM.

This is mi terminal screen now, I have installed Oracle jdk 1.7.

apigee-edge-4.15.04.00

[root@acntest apigee-edge-4.15.04.00]# ./apigee-install.sh

Warning: Found non certified or unknown OS Continue anyhow y/(n) y

Please enter Oracle JDK 1.6 or Oracle JDK 1.7 home (/usr/java/default): /opt/jdk1.7.0_79/bin/ java

environment is OK (arch, vendor, version)

WARNING: javac wrong version (is 1.8.0)

WARNING:

JAVA_HOME selecting different java than is on PATH

JAVA_HOME value is /opt/jdk1.7.0_79/bin/

JAVA_HOME points at /opt/jdk1.7.0_79/bin java on path is at /opt/jdk1.7.0_79/bin/java

Java verification failed. Exit code: 48

Please install the correct version of Java before running this script.

[root@acntest apigee-edge-4.15.04.00]# java -version java version "1.7.0_79" Java(TM) SE Runtime Environment (build 1.7.0_79-b15) Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode) [root@acntest apigee-edge-4.15.04.00]#

Not applicable

Hi @francisco.j.burtin. Based on our last conversation, your VM used to run OpenJDK. So, I wonder if your VM still has somehow references to your old OpenJDK installation. Did you try removing OpenJDK first? Here are some pointers on how to remove it. http://www.2daygeek.com/uninstall-oracle-java-openjdk-linux/. Also, if that doesn't work, try recreating the VM from scratch again.

[root@acntest Downloads]# alternatives --config java

There are 2 programs which provide 'java'.

Selection Command ----------------------------------------------- *

1 /usr/java/jdk1.8.0_51/jre/bin/java

+ 2 /opt/jdk1.7.0_79/bin/java

Enter to keep the current selection[+], or type selection number:

[root@acntest Downloads]# java -version java version "1.7.0_79" Java(TM) SE Runtime Environment (build 1.7.0_79-b15) Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode) [root@acntest Downloads]#