Just Code it!
Header

That’s the second part to the series that shows how get the system ready to develop RESTful services with Java EE, Tomcat 7.0, JBoss or GoldFish.

You can find the previous post here: Installing Java EE SDK and GlassFish

This section will focus on installing Eclipse (Juno) and set up its jre path.

 

Eclipse Juno – Download

The first thing to do is of course reaching the eclipse website and specifically the download page:
http://www.eclipse.org/downloads/

and download the Eclipse IDE for Java EE:

You will probably want to download the 32bit version, unless you know and you want to use a 64bit.

 

Eclipse Juno – Install

There is not really much to install here…

Just extract the package (I would suggest to extract its content in the root folder of you HD. Ex: “C:\eclipse”).

 

Eclipse Juno – Run

Once extracted enter in the folder and run “eclipse.exe”:

Once launched it will ask you to select your work folder. You can leave the default settings here

 

Eclipse Juno – Configure

Now we need to configure it in order to use the Java EE SDK we just downloaded.

Open the Window->Preferences menu option:

In the Dialog that will pop up, type “jre” or drill down in Java->Installed JREs section, select it and click on the “Add…” button:

In the new window just click Next (with Standard VM select):

In the next window enter the path where your glassfish is installed, making sure that the “jdk” sub-folder is included in the path, or navigate to its location using the “Directory…” button.
The JRE name and system libraries should be automatically filled by the system.
Once everything looks ok, just click on finish:

You will be back at the jre selection windows.

Make sure to select the newly added JDK this time:

and you are good to go!

 

In the next post I’ll show hot to install and connect Eclipse to some of the available servers. Stay tuned!

 

That’s is the first of a set of few posts that will focus in installing and configuring Eclipse in order to been able to build Dynamic Web Pages with Java EE SDK using Tomcat 7.0, JBoss or GlassFish.

In this first post I’ll focus only in the initial step of downloading and configuring Java EE and Eclipse (Juno).

 

Java EE SDK – Download

The first thing to do is going to the Java download page:
http://www.oracle.com/technetwork/java/javaee/downloads/index.html

and select the “Java Platform, Enterprise Edition 6 SDK Update 4 (with JDK 7u11)” or newer version:

Or directly go to the download page (if that’s the latest version):
http://www.oracle.com/technetwork/java/javaee/downloads/java-ee-sdk-6u4-jdk-7u11-downloads-1900532.html

Here just accept the license agreement:

and download the file you need.

If you are in windows you will probably need the “Windows” (or “Windows – Multi-Language”) version for a normal Windows 32bit version. If your system is 64bit, then you can decide to go for the x64 versions.

Java EE SDK and GlassFish – Install

When the download is completed, run it and simply follow the instructions, they are quite straightforward.

Some key points are:

  • You will want probably to select: “Typical installation
  • Leave the installation directory to the default one: “C:\glassfish3
  • Leave the Install and Enable Update Tool options checked as they are (with no proxy settings)
  • Leave it create the default domain (domain1) using a sensible username (“admin”… if it is sensible :)) and possibly a more meaningful password
  • If you are prompted by Windows Firewall about allowing access… allow it

Once finished you should be able to go to “localhost:8080” and see the glassfish default page:

 

That’s really it for it. The next Post will be dedicate to Installing and configuring Eclipse (Juno).

You can find it here:

Installing Eclipse (Juno) and configure it with Java EE SDK