COMP 655: Distributed/Operating Systems - Summer 2011
2024-05-05 22:18:37 UTC
Home
Lectures
Assignments
Books, web, tools
 
Turnitin.com
Guidelines
Writing help
Plagiarism
 
DiNo
Glassfish
RESTful client
Menu service
JAX-RS
JAXB
EJB
Java
 
Bulletin board
Contact
 

Eclipse 3.6 and GlassFish 3.1 integration


Configure your IDE

You may want to install the Glassfish addon for eclipse to have your Glassfish server integrated with your eclipse IDE.
Please refer to this page for detailed instructions.

After you install the addon, you may start, stop Glassfish and run/deploy your applications within eclipse. However, you may encouter an error like this one:

GlassFish v3 requires a JDK 1.6 and not a JRE. Please add/select the correct JDK in the Server properties 'Runtime Environment' section.

To fix this problem, you should do the following:

  • 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:\glassfish3\jdk. The rest should fill in automagically. Hit Finish.
    • MOST IMPORTANT!!! Check the box back in the Preferences Window for the new jdk runtime.

    Click OK to close the Preference Window.

    Open the Preference Window again,

    • Go to +Server -> Runtime Environments
    • Select the Glassfish SRE, hit Edit...
    • From the JRE drop down grab the JDK and hit Finish
    • Hit OK

    Go to the Servers Veiw (probably down by the Console View). Right click on the Glassfish Server and hit restart/start.

    The aforementioned error should be fixed by this time.