- Open Eclipse JavaEE IDE and please refer here to install Glassfish Tools into Eclipse IDE
- Restart the Eclipse IDE
- Download and extract Glassfish v5.1.0
- Click on
Create a new server...
in servers tab
- Upon Next on the Window, provide glassfish extracted directory path and JDK1.8 path as below;
- Then You can proceed Next and since we are setting up our deployable artifacts later, just click on Finish.
There's a known issue in Glassfish Eclipse Plugin. You need to add following JVM arguments in Run -> Debug Configurations