Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java path error while installing glass fish 3.1.2

Tags:

glassfish-3

I installed JDK 7 update 5 (64 bit) on my server(Server has 64 bit windows OS). Set the environment path. When i do java -version. I get the output java version 1.7_0_05 but when i try to install glass fish then i get the error that This application needs version 1.6 or higher of the Java (TM)2 Runtime Environment . I have set both the JDK bin folder and JRE bin folder on my environment path. Why i am getting this ?

Thanks

like image 892
Basit Avatar asked Jul 12 '12 10:07

Basit


1 Answers

I didn't update the environment variable but i think path should be to JRE that is inside JDK like i tried this and it worked

D:\Basit>ogs-3.1.2-windows.exe -j "c:\Program Files\Java\jdk1.7.0_05\jre".

Hope this answer will help others also.

like image 112
Basit Avatar answered Oct 07 '22 01:10

Basit