1- I have downloaded Glassfish, windows version glassfish-4.0-b77-windows-ml.
2- I have 2 versions of JDK version 6_u41 and 7_u15.
3- Click the installer, it will popup a setup error message as the following:
"This application needs version 1.6 or higher of the Java(TM) 2 runtime Environment..... etc."
It should detect already existing JVM version, which installed normally.