Tuesday, November 2, 2010

Rolling out Java EE 6 development environment

Step 0 – Download and install JDK 6

Download JDK 6 from the link - http://www.oracle.com/technetwork/java/javase/downloads/index.html. Install it under c:\java.

Step 1 – Download and install JBOSS 6

JBOSS6M5 can be downloaded from the following link - http://sourceforge.net/projects/jboss/files/JBoss/JBoss-6.0.0.M5. Once downloaded unzip the file to c:\jboss6.

Step 2 – Download and install Eclipse

Eclipse Helios 3.6.1 can be downloaded from the following link - http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/helios/SR1/eclipse-jee-helios-SR1-win32.zip. Once downloaded unzip the file to c:/eclipse

Step 3 – Install Maven 2 plug-in and extras

I will prefer to use Maven 2 as my build tool. This is very useful if we also have some continuous integration system set up in future. The Maven 2 eclipse plug-in update sites are located at - http://m2eclipse.sonatype.org/installing-m2eclipse.html. Launch Eclipse and install the plug-in core and extras. In case of the extras install only the WTP extension.

Once the M2E plug-in is installed,restarting Eclipse you may get some warnings as listed below:

Eclipse is running in a JRE, but a JDK is required
  Some Maven plugins may not work when importing projects or updating source folders.

You can resolve this by adding the following line to your eclipse.ini file. This file is located at c:\eclipse folder.

-vm
C:\Java\jdk1.6.0_22\bin\javaw.exe

This is a snapshot from my eclipse.ini file

openFile
--launcher.XXMaxPermSize
256M
-showsplash
-vm
C:\Java\jdk1.6.0_22\bin\javaw.exe
org.eclipse.platform

Step 4 – Install Subversion plug-in

I want to safe keep my learning on some subversion repository. So I went on to create a project on GOOGLE CODE called “windowshop” - http://code.google.com/p/windowshop/

You can add the subversion plug-in for Eclipse using the following update URL - http://subclipse.tigris.org/update_1.6.x

Step 5 – Configure SVN

Now I will commit and change code kept on the Google Code SVN. So I need to add the code repository. You can do so easily by going to the SVN repository view and adding the following URL - https://windowshop.googlecode.com/svn

The development environment is more or less setup. If I see that I have missed anything going forward, I will try to add it here.

No comments:

Post a Comment