Project

General

Profile

Setup Development Environment » History » Version 6

chin-yeh, 10/14/2011 12:00 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
# copy the attachment:"settings.xml" to :
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 4 chin-yeh
# for web application project (_excluded those that maintained using Maven_), add the following libraries to the Java Build Path (*_Properties -> Java Build Path -> Libraries_*)
56
** "Servlet-API":http://192.168.2.13:8081/nexus/service/local/artifact/maven/redirect?r=jboss_release&g=jboss.web&a=servlet-api&v=2.1.5.GA&e=jar
57
** "JSP-API":http://192.168.2.13:8081/nexus/service/local/artifact/maven/redirect?r=jboss_release&g=jboss.web&a=jsp-api&v=2.1.5.GA&e=jar
58 6 chin-yeh
# _(optional)_ _(skip this step if do not want to *replace* your existing CVS & SVN repository settings)_
59
## import the following *eclipse preferences* (*_File -> Import -> General -> Preferences_*)
60
*** attachment:cvs_repository.epf
61
*** attachment:svn_repository.epf
62 4 chin-yeh
# done