Vikram Singh
Vikram Singh

Reputation: 41

"application need 1.6 or higher version of java" error while installing glassfish server?

I have downloaded glassfish server 3.1 and i have installed java 1.7, but while installing glassfish server I have the error below:

enter image description here

My java version is:

C:\Users\viksa>java -version
java version "1.7.0_04"
Java(TM) SE Runtime Environment (build 1.7.0_04-b22)
Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)

Upvotes: 4

Views: 4356

Answers (5)

Laksh Bhirajdar
Laksh Bhirajdar

Reputation: 1

Download and install java runtime enviornment 1.6 ... its the requirement for JRE and not JDK

Upvotes: 0

bala
bala

Reputation: 51

  1. Go to your glassfish download location:

    C:\Users\J Balakrishna\Downloads

  2. Take your Java installed location:

    C:\Program Files\Java\jdk1.8.0_112

  3. Run:

    C:\Users\J Balakrishna\Downloads>glassfish-3.1.2-windows.exe -j "C:\Program Files\Java\jdk1.8.0_112"

Upvotes: 5

sawyinwaimon
sawyinwaimon

Reputation: 759

Please check "How do I specify the jdk for a glassfish domain?".I think You can get similar ways just like adding JDK to asenv.bat.

Upvotes: 1

adapt-dev
adapt-dev

Reputation: 1768

check your JAVA_HOME environment variable.

Finally, follow the instructions on the last line of that popup:

ogs-3.1.2.2-windows.exe -j \path\to\where\your\java\is

Upvotes: 0

piyushj
piyushj

Reputation: 1552

please check the environment variable settings, it seems its referring to an old instance of JRE which is also present in the machine.

Check the PATH variable.

Upvotes: 0

Related Questions