Eclipse 4.3.2开发环境搭建
下载地址列表:http://www.eclipse.org/downloads/packages/release/Kepler/SR2
对于Java开发,建议选择:Eclipse IDE for Java EE Developers
如果同时需要使用BIRT进行报表开发,建议选择:Eclipse IDE for Java and Report Developers
对于C/C++开发,建议选择:Eclipse IDE for C/C++ Developers
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
-vm D:/JavaEE/jdk/x64/1.7/bin/javaw.exe -startup plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140116-2212 -product org.eclipse.epp.package.reporting.product --launcher.defaultAction openFile -showsplash org.eclipse.platform --launcher.defaultAction openFile --launcher.appendVmargs -vmargs -Dosgi.requiredJavaVersion=1.6 -Xms1536m -Xmx1536m -XX:PermSize=256m -XX:MaxPermSize=256m -Xmn576m -Xverify:none -XX:ParallelGCThreads=8 -XX:+DisableExplicitGC -Duser.name="WangZhen" |
建立Eclipse的快捷方式:D:JavaEE\ide\eclipse\4.3.2\eclipse.exe -nl "en_US"
到Oracle网站下载1.4-1.8版本的JDK,分别安装到D:\JavaEE\jdk\x64|x86的1.4-1.8子目录下
Linux下的JDK安装步骤,可以参考:Ubuntu14.04下Eclipse开发环境的搭建
插件名称 | 说明 |
m2eclipse |
Maven的Eclipse插件 Update Site:http://download.eclipse.org/technology/m2e/releases 注意:取消选择“Show only the latest versions of available software”并安装1.4.x版本,因为1.5.x版本需要Luna才能支持 |
m2e-wtp |
m2eclipse插件与WTP平台的集成 Update Site:http://download.eclipse.org/m2e-wtp/releases/kepler/ |
JRebel for Eclipse |
JRebel与Eclipse的集成,JRebel提供快速开发的支持,可以免重启配置多种框架组件和热部署Java类 Update Site:http://update.zeroturnaround.com/update-site |
Subclipse |
与SVN的集成 Update Site:http://subclipse.tigris.org/update_1.10.x |
AJDT |
对AspectJ开发的支持 AJDT Configurator,支持 aspectj-maven-plugin与Eclipse的对接 |
CDT |
对C/C++开发的支持 Update Site:http://download.eclipse.org/tools/cdt/releases/kepler |
PDT |
对PHP开发的支持 Update Site:http://download.eclipse.org/tools/pdt/updates/3.3.1 |
Spket IDE |
ExtJS的编辑器插件 Update Site:http://www.agpad.com/update/ |
Eclipse HTML Editor |
HTML、JSP等代码的编辑器插件 该插件依赖GEF框架:http://download.eclipse.org/tools/gef/updates/releases/ 到http://amateras.sourceforge.jp/cgi-bin/fswiki_en/wiki.cgi?page=EclipseHTMLEditor 下载插件并放到%ECLIPSE_HOME%\dropins下 |
EclEmma |
代码覆盖率插件 Update Site:http://update.eclemma.org/ |
Jeeeyul's Themes |
主题插件,可以美化Eclipse UI Update Site:http://eclipse.jeeeyul.net/update/ |
Eclipse Class Decompiler |
反编译插件 http://feeling.sourceforge.net/update |
Atlassian Connector |
JIRA的Mylyn连接器 http://update.atlassian.com/atlassian-eclipse-plugin/rest/e3.7 |
打开Eclipse,进入Window – Preferences,参考下表进行配置
配置项 | 配置说明 |
General |
勾选:Always run in background、Show heap status |
General - Web Browser |
点选 Use external web browser |
General - Appearance |
修改Theme为:JeeeUl's themes - Custom Theme 展开节点:Color and Fonts,右侧树展开到:Basic - Text Fonts,修改字体为:XSung Mono.Lanting 11 展开节点:JeeeUl's Themes - Presets,导入:WangZhen.epf 展开节点:JeeeUl's Themes,点击右侧窗体右上角的向下小箭头,选择User Preset - WangZhen |
General - Workspace |
勾选:Refresh using native hooks or polling Text file encoding:UTF-8 New text file line delimiter:Windows |
General - Editors |
展开节点:Text Editors,按如下设置: Undo history size: 1000,勾选:Insert spaces for tabs、Show line numbers 展开节点:Text Editors - Spelling,取消勾选:Enable spell checking 展开节点:File Associations,修改编辑器关联性:
|
General - Startup and... | 勾选:Refresh workspace on startup |
General - Keys | 解除Alt + /与Word Completion的关联,设置Content Assist的快捷键为Alt + / |
Java - Code Style |
展开节点:Organize Import Number of static imports needed for.* (e.g. 'java.Iang.Math.*'):设置为1 展开节点:Code Templates,点击右侧Import按钮,导入:java-code-templates.xml 展开节点:Formatter,点击右侧Import按钮,导入:java-formatter.xml |
Java - Installed JREs |
依次添加上面安装的JDK 1.4-1.8,以JDK1.6为例: JRE HOME:D:\JavaEE\jdk\x64\1.6 JRE_NAME:1.6 Default VM args:-Xms64m -Xmx1024m -XX:PermSize=64m -XX:MaxPermSize=256m |
Java - Appearance |
展开节点:Members Sort Order,勾选:Sort members in same category by visibility,把Private排到最下面 |
JavaScript - Code Style |
展开节点:Formatter,点击右侧Import按钮,导入:js-formatter.xml |
Amateras - Formatter |
取消勾选:Use tab as indentation Indentation size:4 Maximum line width:128 |
PHP - Code Style |
展开节点:Formatter,点击右侧Import按钮,导入:php-formatter.xml |
C/C++ - Code Style |
展开节点:Formatter,点击右侧Import按钮,导入:c-formatter.xml |
Spket - Editors |
勾选:Convert tabs to spaces 展开节点:JavaScript Editor - Formatter,点击右侧Import按钮,导入:spket-js-formatter.xml |
Spket - JavaScript Profiles |
|
Server |
展开节点:Runtime Environments,点击添加,分别添加Tomcat6、7,名称保持默认 Tomcat从官网下载,并放入D:\JavaEE\container\tomcat\目录下,以版本号为子目录名 打开视图Servers,右键New -Server,创建服务器实例,Server name命名规则:Runtime Env名称:端口,创建6060 8080 9090三个实例。完毕后,双击Servers配置:
|
Run/Debug - Console |
Console buffer size (characters): 800000 Displayed tab width: 4 |
Web |
展开节点:CSS Files - Editor,设置Line Width为128,点选Indent using spaces,Indentation size为4 展开节点:HTML Files - Editor,设置同上 展开节点:JSP Files,设置Encoding为ISO 10646(UTF-8) |
XML | 展开节点:XML Files - Editor,设置Line Width为128,点选Indent using spaces,Indentation size为4 |
Subclipse | 打开透视图:SVN Repository Exploring,添加必要的SVN仓库地址 |
JRebel |
打开透视图:JRebel Config Center。 点击右侧Activate/Update License,输入你的License 点击Advanced选项卡:
|
Maven |
勾选:Download Artifact Sources、Download Artifact JavaDoc 展开节点:Archetypes,右侧点击Add Remote Catalog,添加公司的原型库,例如:http://192.168.0.200:8801/nexus/service/local/repositories/releases/content/archetype-catalog.xml 展开节点:Installations,点击右侧Add按钮,添加D:\JavaEE\maven\3.0.5,并设为Eclipse默认Maven 展开节点:User Settings,修改设置为:maven-settings.xml,点击Update Settings 打开视图:Maven Repositories,更新所有索引 |
Mylyn - Tasks |
Synchronize with repositories every 5 Week Start:Monday 打开Task Repositories视图,右键Add Task Repository,类型选择JIRA,根据公司配置输入JIRA连接信息 |
Leave a Reply