Eclipse and MyEclipse
by Sandeep Desai (http://www.thedesai.net)
Eclipse is an open source IDE, there are numerous plugins
available for creating J2EE Applications.
The best way to use Eclipse is to purchase MyEclipse
MyEclipse IDE 5.0
- Supports
Spring, Hibernate, EJB, Struts, JSF, UML, Database Explorer, Javascript,
AJAX etc
- Deploy
to almost any app Server
- Free
30 day trail ($52.95 annual subscription)
Installation
- Download
Eclipse 3.2
- Unzip
Eclipse
- Download
MyEclipse Plugin 5.0 (expires
in 30 days, professional subscription $50)
- Install
MyEclipse Plugin
- Launch
eclipse.exe or MyEclipse from Windows Start Menu
- MyEclipse
features are available by right clicking on a project and clicking the
MyEclipse menu
Creating Web Project
- Click
on New
- Click
on Project
- Select
Web Project
- Specify
Project Name
- This
will create a Servlet and JSP application
- To add
Struts support right click on Project, Click on MyEclipse and Click on Add
Struts Capabilities
- Click
on Window Menu, Preferences, MyEclipse, Application Servers to setup an
Application Server
- To
Deploy application click on toolbar Deploy Button
- Make
sure that you click on J2EE Prespective on the top right hand side to
access all the J2EE features
- Make
sure that you create all JSP under WebRoot
UML
Click on New UML Model Repository
- New
Class Diagram, Sequence Diagram, Use case Diagram etc should appear on the
main toolbar
Database Explorer
- Click
on Windows, Preferences, MyEclipse, Database Explorer, Drivers to setup
Database Connection
- Click
on Window, Open Prespective, Database Explorer to launch Explorer
Click on top right hand side perspective icons to switch
between Java, J2EE, Debug and UML perspective
MyEclipse
Tutorials for Struts, JSF, EJB etc
Struts
Tutorial Step by Step
Eclipse
Eclispse Callisto has support for deploying Web Applications
to Tomcat, JBoss, Oracle OC4J, IBM Websphere, BEA Weblogic and Apache Geronimo
To Create a Servlet
Create Dynamic Web Project
Create Servlet
Right click on Project and Click on Export to create War
file
Links
Eclipse
Plugin Central