问题
I use Eclipse Indigo Java EE and I want to use the GlassFish 3 server. I am used to work with Tomcat which can easily be accessed from Eclipse.
I followed How to install the GlassFish 3 server adapter with Eclipse Helios 3.6 answer but I got the following error:
Cannot complete the install because one or more required items could not be found. Software being installed: GlassFish Java EE 5, Java EE 6 1.0.54 (com.sun.enterprise.jst.server.sunappsrv.feature.feature.group 1.0.54) Missing requirement: GlassFish Java EE 5, Java EE 6 1.0.54 (com.sun.enterprise.jst.server.sunappsrv.feature.feature.group 1.0.54) requires 'org.eclipse.platform.feature.group [3.5.0,3.6.0)' but it could not be found
The solution for this problem is a dated link so I can't find any way to solve this issue. Please provide me a up-to-date solution for this.
回答1:
The information in the linked question is outdated.
You should
- Download and unzip glassfish separately.
- In Eclipse, choose Help -> Eclipse Marketplace..., and search for Glassfish. This will locate amongst others "GlassFish Java EE Application Server Plugin for Eclipse" which has an Install button. Use the button to install.
- Wait.
- Restart Eclipse if prompted.
- In the Servers view, right-click and choose New -> Server... Now you can choose to install a Glassfish server. Be certain to use exactly the adapter for the Glassfish server you have. Point to the glassfish folder inside the unpacked server.
来源:https://stackoverflow.com/questions/8046803/indigo-java-ee-with-glassfish-bundle