Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Glassfish installation JRE not found

I can't install Oracle Glassfish Server 3.1.2.2
When I run the installer (as admin) a dialog box appears saying "extracting files" and then I get the following error box saying I don't have JRE installed.

JRE needed

I have JRE and JDK 1.6 and 1.7 installed (all are 64 bit).
All are in the PATH system variable.
I've tried the program from CMD using the instructions in the error.
The command I use to run is:
OracleGlassfishServer(OGS)-3.1.2.2-windows.exe" -j "c:\Program Files\Java\jdk1.7.0_09\bin
I've also tried with the 1.6 bin.
I am running Win 7 64 bit.

The only thing I haven't thought to try yet was installing a 32bit JRE in the Program Files(x86) directory. Does it make sense that this would require a 32bit JRE?

What else could be the cause?

like image 544
Frantumn Avatar asked Nov 15 '12 16:11

Frantumn


2 Answers

The Glassfish installation program requires the path to the JRE installation folder to be in the JAVA_HOME environment variable; if the variable is not set the folder can be specified on the command line. In both cases the folder must be the root folder of the JRE, not the bin subfolder.

like image 84
remigio Avatar answered Nov 20 '22 14:11

remigio


Unfortunately, I found setting JAVA_HOME to be ineffective for me.

The solution that worked on my server was to run the Glassfish install with the -j option pointing to my JDK.

like image 30
Brian Knoblauch Avatar answered Nov 20 '22 14:11

Brian Knoblauch