Frantumn
Frantumn

Reputation: 1764

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?

Upvotes: 6

Views: 7041

Answers (3)

MrJaid
MrJaid

Reputation: 89

using command line and pointing to JRE installation directory should work Just fine, the problem with the above command is that you were pointing to bin directory, simply point to the home directory that is "c:\Program Files\Java\jdk1.7.0_09"

Upvotes: 0

Brian Knoblauch
Brian Knoblauch

Reputation: 21369

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.

Upvotes: 3

remigio
remigio

Reputation: 4211

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.

Upvotes: 3

Related Questions