Reputation: 41
I have downloaded glassfish server 3.1
and i have installed java 1.7
, but while installing glassfish
server I have the error below:
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
Reputation: 1
Download and install java runtime enviornment 1.6 ... its the requirement for JRE and not JDK
Upvotes: 0
Reputation: 51
Go to your glassfish download location:
C:\Users\J Balakrishna\Downloads
Take your Java installed location:
C:\Program Files\Java\jdk1.8.0_112
Run:
C:\Users\J Balakrishna\Downloads>glassfish-3.1.2-windows.exe -j "C:\Program Files\Java\jdk1.8.0_112"
Upvotes: 5
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
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
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