Actions
Setup Development Environment » History » Revision 9
« Previous |
Revision 9/16
(diff)
| Next »
chin-yeh, 01/16/2012 02:24 PM
- Table of contents
- Setup Development Environment
- How to Deploy
- How to Debug
Setup Development Environment¶
This guide describes how to setup the development environment in which contains the following components:- Eclipse IDE (Galileo)
- Jboss AS 4.0.4 (local deployment only)
- Jboss AS 4.2.2 (local deployment only)
- Jetty 7.5.1 (local & remote deployment)
All of the projects requires JDK 6.0.
Steps¶
Note: Refer to the Setup Files section to get all of the required files.
- Download and extract the following files to
C drive (C:\)
: - Install the JDK 6.0 Update 23 and install it into
c:\program files
- Edit eclipse.ini
(c:\eclipse_galileo)
and confirm if it's pointing to the JDK in which installed in the previous step:-vm C:/Program Files/Java/jdk1.6.0_23/jre/bin/client/jvm.dll
- Launch the Eclipse IDE
(c:\eclipse_galileo\eclipse.exe)
and choose the workspace(c:\eclipse_mcom)
that extracted in the previous step - Navigate to [Window -> Preferences -> Java -> Installed JREs] and make sure the workspace is using JDK, not JRE, and it's pointing to the JDK location that installed in the previous step
- Click on the CVS Repository view (located at the left bottom of the workspace) and update the user for all of the repositories:
- right click on the repository -> Properties -> User
- Finally, do a CVS Update on all of the project(s)
- right click on the project -> Team -> Update
- done
Setup Files¶
Filename | Description |
---|---|
Eclipse Galileo | Eclipse IDE |
Eclipse Workspace | The Eclipse workspace |
Jboss AS 4.0.4 | Jboss Application Server 4.0.4 |
Jboss AS 4.2.2 | Jboss Application Server 4.2.2 |
JDK 5.0 Update 20 | JDK 5.0 with Update 20 for Windows |
JDK 6.0 Update 23 | JDK 6.0 with Update 23 for Windows |
How to Deploy¶
Local¶
- clean and rebuild the
mcom-connector
project - open Java EE or Java perspective
- [right click on the project] and choose [Debug As -> Run Jetty]
- if started, you can access the application via:
Remote¶
- clean and rebuild the
mcom-connector
project - open Java EE or Java perspective
- execute the remote-deploy Ant target in the build.xml
- existing deployment folder will be overwritten
- if succeed, you can access the application via:
How to Debug¶
- add the desired breakpoint(s) on the Java or JSP
- open Debug perspective
- [right click on the project] and choose [Debug As -> Run Jetty]
- if started, you can access the application via the following URL and begin your debug session:
Extra: Refer to this link for more info about the Debugging in Eclipse IDE
.
Updated by chin-yeh almost 13 years ago · 9 revisions