Chapter 7 Creating J2EE Applications for IBM WebSphere 5.0


Building and Deploying J2EE Applications Using Eclipse

You can use Eclipse to build, package and deploy a J2EE application into WebSphere server.

You will need to download and install the latest version of the Eclipse runtime and the JDT from the www.eclipse.org web site.

Steps To generate Eclipse project files:

  1. Add the Eclipse profile to your environment by importing the Eclipse extended model definition into your OOM.
  2. Ensure that the WAS_HOME environment variable is defined to indicate the WebSphere server home directory.
  3. Ensure that the ECLIPSE_HOME environment variable is defined to indicate the Eclipse home directory.
  4. Ensure that the ANT_HOME environment variable is defined to indicate the Apache Ant home directory.
  5. Select Language→Generate Java Code.

An Eclipse project file and an Ant build.xml will be generated together with the Java source code, and descriptors. You can import the generated project into Eclipse, then use the Eclipse JDT to develop and compile Java files and use the Ant build.xml file to deploy the J2EE application into WebSphere server.

 


Copyright (C) 2006. Sybase Inc. All rights reserved.