JRE glass fish rig not found

I can not install Oracle Glassfish Server 3.1.2.2
When I run the installer (as an administrator), a dialog box appears with the message โ€œextract filesโ€, and then the following window appears with the message that I do not have JRE installed.

Jre needed

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

The only thing I have not thought about trying is to install the 32-bit JRE in the Program Files (x86) directory. Does it make sense that this requires a 32-bit JRE?

What else could be the reason?

+6
source share
3 answers

The Glassfish installer requires that the path to the JRE installation folder 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 should be the root JRE folder, not the bin subfolder.

+3
source

Unfortunately, I believe that setting JAVA_HOME is ineffective for me.

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

+3
source

using the command line and pointing to the JRE installation directory, you need to work. Just fine, the problem with the above command is that you pointed to the bin directory, just specify the home directory, which is "c: \ Program Files \ Java \ jdk1.7.0_09"

0
source

All Articles