[GLASSFISH-19486] Glassfish 4 installer should detect and require JDK7. Created: 29/Dec/12  Updated: 19/Mar/13  Resolved: 19/Mar/13

Status: Resolved
Project: glassfish
Component/s: installation
Affects Version/s: 4.0_b69
Fix Version/s: 4.0_b81

Type: Improvement Priority: Critical
Reporter: Mohamed Taman Assignee: Snjezana Sevo-Zenzerovic
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Windows 7 Professional SP1
Mac OS X v10.6.8

Tags: adoptajsr


I have JDK6(Default) and JDK7 installed on the same machine (Windows and Mac), and when I have unzipped the glassfish_4_b69 and run it for the first time it reports the following exception

*"asadmin> start-domain domain1
Waiting for domain1 to start .............Error starting domain domain1.
The server exited prematurely with exit code 1.
Before it died, it produced the following output:
Caused by: A MultiException has 2 exceptions. They are:
1. java.lang.UnsupportedClassVersionError: org/glassfish/jdbc/config/JdbcResourceInjector : Unsupported major.minor version 51.0"

After investigation, It should run on JDK7 not JDK6, but the error is misleading somehow, it should be there some sort of detection for the exact version of proper supported JDK, and then reports a proper error message, something like "Unsupported JDK version, use JDK7 version."+


The windows installer detects and show the jdk6 even I have JDK 7 installed without warnings, and when I pointed to JDK 7 it give me a warning message the there is no java home selected.

Comment by Tom Mueller [ 02/Jan/13 ]

The version checking in the startup logic has been changed to enforce JDK 7 in revision 57887 on the trunk.

Comment by Tom Mueller [ 02/Jan/13 ]

Reassigning this to the installation component so that the last part (under "Also") can be fixed. Specifically, the installer needs to detect only JDK 7 installs for GF 4. This fix is required for 4.0.

Comment by Snjezana Sevo-Zenzerovic [ 19/Mar/13 ]

JDK 7 specified as the lowest supported version in install wrapper and JDK selection screen.

Generated at Mon Sep 26 03:54:28 UTC 2016 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.