org/glassfish/admin/cli/AsadminMain : Unsupported major.minor version 51.0

Reading Time: < 1 minute

This issue occurs when you try to launch Glassfish 4 with JDK 1.6 or lower versions. If you have a seperated jdk 1.7 not installed a zip archive go to

GLASSFISHHOME\glassfish\conf

here find asenv.bat and edit it and add the following line with your jdk version

set AS_JAVA=C:\Program Files\Java\jdk1.7.0_55