Setup Development Environment » History » Version 6
chin-yeh, 01/16/2012 01:51 PM
1 | 1 | chin-yeh | {{toc}} |
---|---|---|---|
2 | |||
3 | h1. Setup Development Environment |
||
4 | 2 | chin-yeh | |
5 | This guide describes how to setup the development environment in which contains the following components: |
||
6 | * Eclipse IDE (_Galileo_) |
||
7 | * Jboss AS 4.0.4 (_local deployment only_) |
||
8 | * Jboss AS 4.2.2 (_local deployment only_) |
||
9 | * Jetty 7.5.1 (_local & remote deployment_) |
||
10 | |||
11 | h2. Steps |
||
12 | |||
13 | 3 | chin-yeh | > *Note:* Refer to the [[Setup_Development_Environment#Setup-Files|Setup Files]] section to get all of the required files. |
14 | 1 | chin-yeh | |
15 | 3 | chin-yeh | # Download and extract the following files to <code>C drive (C:\)</code>: |
16 | ** [[Setup_Development_Environment#Setup-Files|Eclipse Galileo]] |
||
17 | ** [[Setup_Development_Environment#Setup-Files|Eclipse Workspace]] |
||
18 | ** [[Setup_Development_Environment#Setup-Files|Jboss AS 4.0.4]] |
||
19 | ** [[Setup_Development_Environment#Setup-Files|Jboss AS 4.2.2]] |
||
20 | 4 | chin-yeh | # Install the [[Setup_Development_Environment#Setup-Files|JDK 6.0 Update 23]] and install it into <code>c:\program files</code> |
21 | 3 | chin-yeh | # Edit *eclipse.ini* <code>(c:\eclipse_galileo)</code> and confirm if it's pointing to the JDK in which installed in the previous step: |
22 | <pre> |
||
23 | -vm |
||
24 | C:/Program Files/Java/jdk1.6.0_23/jre/bin/client/jvm.dll |
||
25 | </pre> |
||
26 | # Launch the *Eclipse IDE* <code>(c:\eclipse_galileo\eclipse.exe)</code> and choose the *workspace* <code>(c:\eclipse_mcom)</code> that extracted in the previous step |
||
27 | # 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 |
||
28 | 4 | chin-yeh | # Click on the *CVS Repository* view _(located at the left bottom of the workspace)_ and *update the user* for *all* of the repositories: |
29 | 3 | chin-yeh | ** _right click on the repository -> Properties -> User_ |
30 | # Finally, do a *CVS Update* on all of the project(s) |
||
31 | ** _right click on the project -> Team -> Update_ |
||
32 | # done |
||
33 | |||
34 | 2 | chin-yeh | h2. Setup Files |
35 | |||
36 | |_.Filename|_.Description| |
||
37 | |"Eclipse Galileo":http://192.168.2.13/download/eclipse_galileo.zip|Eclipse IDE| |
||
38 | 1 | chin-yeh | |"Eclipse Workspace":http://192.168.2.13/download/eclipse_mcom.zip|The Eclipse workspace| |
39 | 2 | chin-yeh | |"Jboss AS 4.0.4":http://192.168.2.13/download/jboss-4.0.4.GA.zip|Jboss Application Server 4.0.4| |
40 | |"Jboss AS 4.2.2":http://192.168.2.13/download/jboss-4.2.2.GA.zip|Jboss Application Server 4.2.2| |
||
41 | 3 | chin-yeh | |"JDK 5.0 Update 20":http://192.168.2.13/download/jdk-1_5_0_20-windows-i586-p.exe|JDK 5.0 with Update 20 for Windows| |
42 | 2 | chin-yeh | |"JDK 6.0 Update 23":http://192.168.2.13/download/jdk-6u23-windows-i586.exe|JDK 6.0 with Update 23 for Windows| |
43 | 5 | chin-yeh | |
44 | h1. How to Deploy |
||
45 | |||
46 | 6 | chin-yeh | # clean and rebuild the <code>mcom-connector</code> project |
47 | # open *Java EE* or *Java* perspective |
||
48 | 5 | chin-yeh | # _[right click on the project]_ and choose _[Debug As -> Run Jetty]_ |
49 | 6 | chin-yeh | # if started, you can access the application via: |
50 | 5 | chin-yeh | > http://127.0.0.1:8080/mcom-connector/ |
51 | 1 | chin-yeh | |
52 | h1. How to Debug |
||
53 | 6 | chin-yeh | |
54 | # add the desired *breakpoint(s)* on the Java or JSP |
||
55 | # open *Debug* perspective |
||
56 | # _[right click on the project]_ and choose _[Debug As -> Run Jetty]_ |
||
57 | # if started, you can access the application via the following URL and begin your debug session: |
||
58 | > http://127.0.0.1:8080/mcom-connector/ |
||
59 | |||
60 | Refer to this "link":http://www.vogella.de/articles/EclipseDebugging/article.html for more info about the <code>Debugging in Eclipse IDE</code>. |