SETUP JAVA ECLIPSE ENVIRONMENT

Development Environment Setup


The following instructions will guide you through the installation of various tools/programs needed to properly setup a JEE development environment.  These instructions are written with the assumption that we’re starting with a virgin Windows XP Pro SP2 computer with a base minimum of 1024M of RAM. 

Install the following in the order given:

 

1.       Java 6 SE (update 17 at time of writing):

http://java.sun.com/javase/downloads/widget/jdk6.jsp

Download the latest update (Windows 32bit installer).  Start the installer and click Next button until installation is complete.  Registration is not required.

Some Java applications require the `JAVA_HOME` system variable to be set in order to work.  To accomplish this, right click on your My Computer icon and select `Properties`.  Switch to the `Advanced` tab and click the `Environment Variables` button at the bottom.  Under the `System Variables` section press the `New` button and enter the following:

Variable Name: JAVA_HOME

Variable Value: C:\Program Files\Java\jdk1.6.0_17

 

2.       Eclipse JEE Galileo:

http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/galileo/SR1/eclipse-jee-galileo-SR1-win32.zip

 

Open the zip file and extract to a location of your choice (not temporary).  No software installation is required after the extraction is complete.  You can simply click on the eclipse.exe to start it.  The first time it starts, you wil lbe prompted to select a workspace location.  This is where Eclipse will store all your development settings and plugins, not your code.

 

 

3.       MySql 5.1.41 Community Edition:

http://dev.mysql.com/downloads/mysql/5.1.html#downloads

 

Download the 32 bit Windows version.  Click on the installer and select ‘Typical’ as the instlal type.  Keep pressing the Next button until you get to the Finish scrren.  On this screen you will be asked if you want to configure the MySql server now and if you want to register now.  Make sure the configuration option is set to true.  You do not need to register MySql to use it. 

 

When the configuration wizard launchs, select the `Detailed Configuration` option and press the Next button.  Select `Developer Machine` and press the Next button.  Select `Multifunctional Database` and press the Next button.  You will asked where to store the InnoDB database file.  This file is used to store transactional databases you create in MySql.  The default location provided is fine, as long as there is enough disk space for your database(s) to grow.  Press the Next button and then select `DSS/OLAP`  for your conncurrent connection option.  Press the Next button until you get to the language selection screen.  At this screen, you’ll want to change the option from the default to `Best Support for Multilingualism`.  Press the Next button and ensure the options to install MySQL as a service and to include the MySql bin directory in the Windows path are both set to true.  Press the next button and then enter a root password.  Finally, press the `Execute` button to create the configuration file (my.ini) and start the MySql service.

 

4.       Maven 2.2.1:

http://maven.apache.org/download.html

 

Open the zip file and extract to a location of your choice (not temporary).  No software installation is required after the extraction is complete.  Maven is a command line executable, run from your DOS or Cygwin prompt. 

 

To allow you to execute Maven from any directory on your system, you’ll need to add the bin directory to your Windows path.  To accomplish this, right click on your My Computer icon and select `Properties`.  Switch to the `Advanced` tab and click the `Environment Variables` button at the bottom.  Under the `System Variables` section, find the variable named `Path`.  Highlight the `Path` variable by clicking on it, and then press the `Edit` button.   Append the following to end of the current variable value:

 

; C:\Path You Extracted To\apache-maven-2.2.1\bin

 

5.       Tomcat 6.0.20:

http://tomcat.apache.org/download-60.cgi

 

Download the Core Windows Service Installer and execute it.  Keep pressing the Next button until you get to the administrative user screen.  Keep the port number at 8080 and enter an admin password of your choice.  Press the Next button.  On the following screen, you should see the correct java path (install step 1) automatically filled in.  Press the Install button.  Once you’ve finished, you should see the Tomcat Windows service start up and a new icon in the Windows Notification Area (right hand side of Windows toolbar), that allows you to start/stop the Tomcat service.


Comments