I installed glassfish-3.1.2-b06-unix-ml.sh on OEL6 32bit (java version:1.7.0) but failed. Pls check the picture attached.
Then I checked "glassfish3/glassfish/bin/asadmin" and "glassfish3/glassfish/config/asenv.conf", there is "AS_JAVA=/usr/lib/jvm/java-1.6.0-openjdk-188.8.131.52". When GF tryed to create domain, it failed because of no such file in AS_JAVA/bin/java.
I noticed that jdk was just installed on this OEL6, and JAVA_HOME didn't take effect immediately after profile was modified. After JAVA_HOME is set on env, the installation is ok.
In fact, there would be warning and stop installation if JAVA_HOME is not set for GF v3.1.1.