Setup Development Environment » History » Version 9
chin-yeh, 02/29/2012 04:09 PM
1 | 1 | chin-yeh | {{toc}} |
---|---|---|---|
2 | |||
3 | h1. Setup Development Environment |
||
4 | 2 | chin-yeh | |
5 | This guides describes how to setup the Eclipse development environment. |
||
6 | |||
7 | *Steps:* |
||
8 | # install the *Apache Maven* ([[Install Maven]]) |
||
9 | 7 | chin-yeh | # copy the attachment:"settings.xml" to the folder: |
10 | 3 | chin-yeh | ** *Windows Vista or Windows 7* - <code>C:\Users\[your windows account name]\.m2</code> |
11 | ** *Windows XP* - <code>C:\Documents and Settings\[your windows account name]\.m2</code> |
||
12 | 1 | chin-yeh | # download the "Provisioned Eclipse":http://192.168.2.13/download/eclipse.zip |
13 | # unzip it to your local computer |
||
14 | 5 | chin-yeh | # navigate to the extracted folder, e.g. _eclipse3_5_, and edit the *eclipse.ini* to append the following line: |
15 | 4 | chin-yeh | <pre> |
16 | -vm |
||
17 | C:/Program Files/Java/[[you JDK version]]/jre/bin/client/jvm.dll |
||
18 | </pre> |
||
19 | *sample:* |
||
20 | <pre> |
||
21 | --launcher.library |
||
22 | plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519 |
||
23 | -startup |
||
24 | plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar |
||
25 | -vm |
||
26 | C:/Program Files/Java/jdk1.6.0_23/jre/bin/client/jvm.dll |
||
27 | -product |
||
28 | org.eclipse.epp.package.jee.product |
||
29 | --launcher.XXMaxPermSize |
||
30 | 256M |
||
31 | -showsplash |
||
32 | org.eclipse.platform |
||
33 | --launcher.XXMaxPermSize |
||
34 | 256m |
||
35 | -vmargs |
||
36 | -Xss2m |
||
37 | -XX:PermSize=128m |
||
38 | -XX:MaxPermSize=256m |
||
39 | -XX:MaxGCPauseMillis=10 |
||
40 | -XX:MaxHeapFreeRatio=70 |
||
41 | -XX:+UseConcMarkSweepGC |
||
42 | -XX:+CMSIncrementalMode |
||
43 | -XX:+CMSIncrementalPacing |
||
44 | -XX:CompileThreshold=5 |
||
45 | -Dosgi.requiredJavaVersion=1.5 |
||
46 | -Xms128m |
||
47 | -Xmx512m |
||
48 | </pre> |
||
49 | # launch the *eclipse.exe* |
||
50 | 3 | chin-yeh | ** _the select workspace dialog will be prompted up, either setup a new one or point it to your existing workspace_ |
51 | # after that, go to *_Window -> Preference_* |
||
52 | ## select *_General -> Content Types -> Text -> JSP -> JSP Fragment_* |
||
53 | ## press the *Add* button and enter <code>*.inc</code> in the *Content type* field |
||
54 | 1 | chin-yeh | ## press OK to save the changes |
55 | 6 | chin-yeh | # _(optional)_ _(skip this step if do not want to *replace* your existing CVS & SVN repository settings)_ |
56 | 1 | chin-yeh | ## import the following *eclipse preferences* (*_File -> Import -> General -> Preferences_*) |
57 | *** attachment:cvs_repository.epf |
||
58 | *** attachment:svn_repository.epf |
||
59 | 9 | chin-yeh | # download the following files and extract it to the <code>C drive (C:\)</code> |
60 | ** "Jboss AS 4.0.4":http://192.168.2.13/download/jboss-4.0.4.GA.zip |
||
61 | ** "Jboss AS 4.2.2":http://192.168.2.13/download/jboss-4.2.2.GA.zip |
||
62 | 4 | chin-yeh | # done |