On the NetBeans IDE page, in the Services window, right-click the GlassFish V2 node and choose Start.
Wait until the following message appears in the Output window:
"Application server startup complete."
When the server is running, the IDE displays a green arrow icon on the GlassFish V2 node.
The Java EE Service Engineis represented as sun-javaee-engine in the Services window of the IDE, under the GlassFish V2->JBI->Service Engines nodes.