Starting development with NetBeans and Java EE is really simple. Just install a Java development Kit (JDK) and the NetBeans Java EE edition. The full Java EE stack is available to you, including GlassFish application server.
If you’re using Microsoft Windows as operating system, GlassFish is installed below the “Program Files” folder. In an enterprise environment, the installation is often provided by administrative stuff whereas you might not have write access to this directory. In such situation, how would it be possible to deploy an application to that server?
NetBeans solves this problem by separating some parts of the domain into a folder below the users home directory. At this folder, you have write access, even though your account might be restricted.
NetBeans stores the GlassFish domain here:
And if you want to use the bleeding nightly build of GlassFish? Or the currently release WildFly 9? NetBeans support a couple of servers out of the box. Donwnload the Zip-Package and unzip it into a folder of your choice. Then, in NetBeans, open the menu Tools->Servers and click onto [Add Server…]. NetBeans displays a list of application servers it supports out of the box.
Choose your server and click next. NetBeans displays a dialog to browse for your server directory. Depending on your configuration, you might have to enter some configuration details. In most cases simply use NetBeans’ defaults. That’s it.