Project

General

Profile

Actions

Setup Development Environment » History » Revision 8

« Previous | Revision 8/9 (diff) | Next »
chin-yeh, 12/01/2011 11:30 AM


Setup Development Environment

This guides describes how to setup the Eclipse development environment.

Steps:
  1. install the Apache Maven (Install Maven)
  2. copy the settings.xml to the folder:
    • Windows Vista or Windows 7 - C:\Users\[your windows account name]\.m2
    • Windows XP - C:\Documents and Settings\[your windows account name]\.m2
  3. download the Provisioned Eclipse
  4. unzip it to your local computer
  5. navigate to the extracted folder, e.g. eclipse3_5, and edit the eclipse.ini to append the following line:
    -vm
    C:/Program Files/Java/[[you JDK version]]/jre/bin/client/jvm.dll
    

    sample:
    --launcher.library
    plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
    -startup
    plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
    -vm
    C:/Program Files/Java/jdk1.6.0_23/jre/bin/client/jvm.dll
    -product
    org.eclipse.epp.package.jee.product
    --launcher.XXMaxPermSize
    256M
    -showsplash
    org.eclipse.platform
    --launcher.XXMaxPermSize
    256m
    -vmargs
    -Xss2m
    -XX:PermSize=128m
    -XX:MaxPermSize=256m
    -XX:MaxGCPauseMillis=10
    -XX:MaxHeapFreeRatio=70
    -XX:+UseConcMarkSweepGC
    -XX:+CMSIncrementalMode
    -XX:+CMSIncrementalPacing
    -XX:CompileThreshold=5
    -Dosgi.requiredJavaVersion=1.5
    -Xms128m
    -Xmx512m
    
  6. launch the eclipse.exe
    • the select workspace dialog will be prompted up, either setup a new one or point it to your existing workspace
  7. after that, go to Window -> Preference
    1. select General -> Content Types -> Text -> JSP -> JSP Fragment
    2. press the Add button and enter *.inc in the Content type field
    3. press OK to save the changes
  8. (not applicable to Maven project) for web application project, add the following libraries to the Java Build Path (Properties -> Java Build Path -> Libraries)
  9. (optional) (skip this step if do not want to replace your existing CVS & SVN repository settings)
    1. import the following eclipse preferences (File -> Import -> General -> Preferences)
  10. done

Updated by chin-yeh about 13 years ago · 8 revisions