I am running:
I have also installed Java EE 6 SDK Update 2 which includes:
I have registered GlassFish with Eclipse but when I try to start the server, I get the following error:
GlassFish v3 requires a JDK 1.6 and not a JRE. Please add/select the correct JDK in the Server properties 'Runtime Environment' section.
I have searched here for an answer but none so far seem to work. Can anybody suggest how I would sort this error out?
I had the same issue and actually i got the solution from this link ( The above answers really didnt gave me the solution
https://forums.oracle.com/forums/thread.jspa?messageID=7033028
1) make sure the jdk is installed. Look in C:\Program Files\Java\jdk1.6.XXXX (mine says 0_16). If that has stuff in it the jdk probably was installed, if not you can grab just the jdk from http://java.sun.com/javase/downloads/index.jsp
2) This is where the error message kinda foobars ya... - Get eclipse started, ignore the message. - Go to Window>Preferences - Then under +Java+Installed JREs hit Add. - Select 'Standard VM' then Next - JRE Home = C:\Program Files\Java\jdk1.6.XXXX the rest should fill in automagically. Hit Finish. - MOST IMPORTANT!!! Click the check box back in the Preferences Window for the new jdk runtime...I don't know why it's necessary, but it definitely is...
3)Still in Preference Window. - Get to +Server, Runtime Environments - Select the Glassfish SRE, hit Edit... - From the JRE drop down grab the JDK and hit Finish - Hit Okay.
4)Go to the Servers Veiw (probably down by the Console View). Right click on the Bundled Glassfish...Server and hit restart/start...