Configuring J2EE Environment on Eclipse IDE

Eclipse IDE is well known for Java project development. One of the reasons is that Eclipse is free and is easily extendable. Unfortunately no free and reliable plug-in was available for configuring J2EE environment on Eclipse IDE untill Lomboz. Lomboz is an open source and free J2EE development environment for businesses and individuals. You can develop, test, profile and deploy Web, Web services, Java, J2EE and EJB applications with this IDE. Lomboz has comprehensive support for most J2EE standard application server runtimes, and supports most popular open source runtimes such as JOnAS, and other vendor runtime environments. Lomboz is buillt on the Eclipse open source platform and the Web Tools Platform (WTP) projects. Here is the complete tutorial for configuring J2EE environment on Eclipse. It can be downloaded from Lomboz version of Eclipse

After Installing Lomboz

  • Start eclipse.exe , run Eclipse.
  • Change perspective to J2EE.

eclipseshot1

Installing JBOSS Server on Your machine

Now Eclipse with J2EE support is installed and is running on System, Let us install JBOSS Application Server. JBOSS comes with an embedded database (Hypersonic) and a web server (JBossWEB or Tomcat) . Visit JBOSS home page where you will find useful information about JBoss, and also visit the download page,

Download Jboss

For this tutorial we are using JBOSS-4.2.0. After downloading the zipped file, Extract it to your machine and go to bin directory and click run. bat file. Server will start on default 8080 port.

eclipse tut2

Now you can test your web browser by typing

http://localhost:8080/

You will see following screen. If you can see following screen,

Then you have successfully configured Jboss on your system.

eclipseshot3

Let us configure JBoss.

Go to Window -> Preferences -> Server-> Installed Runtimes.

Window will look like this.

eclipseshot5

Now click “Add” Button and select Jboss 4.0

eclipseshot6

Click “Next” button and give path where you extracted Jboss Server. Here are the options by which you can configure other servers as well for your J2EE Applications

eclipseshot7

Click “Finish” Button. Your Eclipse Environment is ready for developing J2ee Application. Now let us test it.

Go to Window -> Show View -> Others -> Server View and you will see server window at bottom. You can see JBOSS server which you have configured, Right click and start the server.

eclipseshot8

So finally your IDE is ready for developing J2EE applications. These are the mandatory steps to configure Eclipse IDE for J2EE Support. Now EJB’s, Web Service like components can be made easily using IDE itself.