Procedure
- Start Eclipse.
- Select menu: File | New | Other
- Expand folder Server, select "Server" and press Next button.
- Click link "Download additional server adapters".
- Select GlassFish Java EE 5 Server and press Next button.
- Read and accept the license agreement and press Finish button.
- Restart Eclipse.
- Again:
- Select menu: File | New | Other
- Expand folder Server
- Select a GlassFish Server, for example: GlassFish v2 Java EE 5 and press Next button.
- Specify the Application Server Directory. This is the directory where you installed GlassFish and press Next button.
- Enter Domain and Administration information and press Next button.
For example:
Domain directory: C:/tools/Java/j2ee5.0/domains
Domain name: domain1
Administrator Id: admin
Administrator Password: adminsecret - Add your project and press Finish button.