4

I have downloaded glassfish server 3.1 and i have installed java 1.7, but while installing glassfish server I have the error below:

enter image description here

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)
oikonomopo
  • 4,025
  • 7
  • 44
  • 73
Vikram Singh
  • 41
  • 1
  • 4
  • Hello. Welcome to Stack Overflow. Please have a look around and take the tour, and read through the help center. – Sampada Apr 21 '16 at 05:52

5 Answers5

5
  1. Go to your glassfish download location:

    C:\Users\J Balakrishna\Downloads

  2. Take your Java installed location:

    C:\Program Files\Java\jdk1.8.0_112

  3. Run:

    C:\Users\J Balakrishna\Downloads>glassfish-3.1.2-windows.exe -j "C:\Program Files\Java\jdk1.8.0_112"

Unheilig
  • 16,196
  • 193
  • 68
  • 98
bala
  • 51
  • 1
  • 2
1

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.

Community
  • 1
  • 1
sawyinwaimon
  • 739
  • 1
  • 6
  • 14
0

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.

piyushj
  • 1,546
  • 5
  • 21
  • 29
0

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

adapt-dev
  • 1,608
  • 1
  • 19
  • 30
0

Download and install java runtime enviornment 1.6 ... its the requirement for JRE and not JDK