Setup Development Environment » History » Revision 7
Revision 6 (chin-yeh, 10/14/2011 12:00 PM) → Revision 7/9 (chin-yeh, 10/14/2011 12:04 PM)
{{toc}} h1. Setup Development Environment This guides describes how to setup the Eclipse development environment. *Steps:* # install the *Apache Maven* ([[Install Maven]]) # copy the attachment:"settings.xml" to the folder: : ** *Windows Vista or Windows 7* - <code>C:\Users\[your windows account name]\.m2</code> ** *Windows XP* - <code>C:\Documents and Settings\[your windows account name]\.m2</code> # download the "Provisioned Eclipse":http://192.168.2.13/download/eclipse.zip # unzip it to your local computer # navigate to the extracted folder, e.g. _eclipse3_5_, and edit the *eclipse.ini* to append the following line: <pre> -vm C:/Program Files/Java/[[you JDK version]]/jre/bin/client/jvm.dll </pre> *sample:* <pre> --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 </pre> # launch the *eclipse.exe* ** _the select workspace dialog will be prompted up, either setup a new one or point it to your existing workspace_ # after that, go to *_Window -> Preference_* ## select *_General -> Content Types -> Text -> JSP -> JSP Fragment_* ## press the *Add* button and enter <code>*.inc</code> in the *Content type* field ## press OK to save the changes # for web application project (_excluded those that maintained using Maven_), add the following libraries to the Java Build Path (*_Properties -> Java Build Path -> Libraries_*) ** "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 ** "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 # _(optional)_ _(skip this step if do not want to *replace* your existing CVS & SVN repository settings)_ ## import the following *eclipse preferences* (*_File -> Import -> General -> Preferences_*) *** attachment:cvs_repository.epf *** attachment:svn_repository.epf # done