Set up NetBeans for Java EE7

NetBeans 7.3 is almost ready. I guess, it takes just a few day until it is available. Even though this version offers new great features [1], one thing is still missing: Support for Java EE7. You may wait for an update – or try the development version. This article describes, how to setup NetBeans with GlassFish 4 for use as early Java EE7 environment.

First of all, download latest NetBeans EE7 version [2] and GlassFish 4 [3]. GlassFish comes in different versions. This article describes the usage of the zipped full (non-web only) version. As time of this writing this is glassfish-4.0-b74.zip.

Unpack both packages to a directory of your choice. Using windows, this might be “c:\”. In this case, NetBeans will be located in “c:\netbeans” and GlassFish in “c:\glassfish3″. Astonished why GlassFish still resides in a folder named “3″? Me too.

Within the netbeans dir, locate bin and start NetBeans by the appropiate file (one of the exe files if you use Microsoft Windows, the shell script if using Linux. On Linux, remember to set this executable if isn’t). When NetBeans is up and running, choose file > new project > Java Web. You may notice, the project typs are displayed in grey. NetBeans offers to activate this feature. Choose activation and then cancel the wizzard.

Next choose tools > servers (without activation in previous step there is no such option) and “Add Server…”. In the following dialog choose GlassFish Server.

Browse to your GlassFish location. NetBeans detects it as GlassFish Server 4.0. Click onto Next two times. No your NetBeans is operates on the bleeding edge…
BTW: You may add GlassFish4 to your existing NetBeans. This allows you to use EE7 too, but without support by the IDE.

Observe my tutorial [4] soon being continued with JEE7/JSF2.2 stuff.

[1] http://wiki.netbeans.org/NewAndNoteworthyNB73
[2] http://bertram2.netbeans.org:8080/job/web-main-javaee7/lastBuild/
[3] http://dlc.sun.com.edgesuite.net/glassfish/4.0/promoted/
[4] http://blog.mueller-bruehl.de/tutorial-web-development/

 

This entry was posted in NetBeans and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>