myEclipse设置

1 安装JDK.

配置环境变量:

JAVA_HOME = JDK的安装路径

Path = %JAVA_HOME%\bin; %JAVA_HOME%\jre\bin;

注意:%JAVA_HOME%\bin; %JAVA_HOME%\jre\bin;一定要放在path中oracle配置前.不然会首先找到Oralce中的JDK1.3.

2 tomcat安装

如果是tomcat源码的那个版本就是用安装,直接放在系统盘的某个位置.

3 安装myEclipse

安装myEcipse的完整版或在eclipse中安装myEclipse插件.

4 安装SVN

Eclipse自带了CVS,我们在安装eclipse的SVN插件.方便以后工作.

我们使用link安装方法安装SVN插件.

5 Eclipse的java运行环境设置

JRE设置:

Windowàpreferencesàjavaàinstalled jres,在这里可以设置JRE. 工程项目的运行环境就是靠它.

6 工作空间设置

Windowàpreferencesàgeneralàworkspace

Text file encoding设置为UTF-8

设置工作空间的文件字符集

7 java构建器

Windowàpreferencesàgeneralàworkspace

Build automatically如果钩选,那么就是自动构建,如果没有钩选,那么就是必须手动构建手动构建,我们用ANT

8 javadoc与java内容助手快捷键设置

windowàpreferencesàGeneralàkeys

content Assist这个改为shift+space in windows

9 编写预定义模板(自动生成大段代码)

Java:

WindowàpreferencesàjavaàeditoràTemplates

可用于java或javadoc,可以插入变量.

Ant:

Windowàpreferencesàantàeditoràtemplates

Jsp:

WindowàpreferencesàmyEclipse enterprise workbenchàFiles and Editorsàjspàjsp Templates

Xml:

WindowàpreferencesàmyEclipse enterprise workbenchàFiles and Editorsàxmlàxml Templates

Html:

WindowàpreferencesàmyEclipse enterprise workbenchàfiles and editors–>htmlàhtml

Templates

DTD与CSS也可以设置模板

10 设置工作空间中各项目中的各种文件使用的字符集

WindowàpreferencesàmyEclipse enterprise workbenchàFiles and Editors下:

CSS,DTD,HTML,JAVASCRIPT,JSP,XML

都使用UTF-8

11 自动生成注释

Windowàpreferencesàjavaàcode styleàcode TemplatesàComments

在这里设置注释

12 编译器设置

JDK一致性与已安装JRE的级别应相同.

Windowàpreferencesàjavaàcompiler中JDK版本,与.windowàpreferencesàjavaà

Installed JREs中JDK版本应相同.

 

13 将tomcat服务器与myEclipse绑定

打开myEclipse,àwindowà preferencesàmyEclipse Enterprise WorkbenchàServersà

Tomcat

14 构建路径

Windowàpreferencesàjavaàbuild pathàclasspath variables

用来建classpath变量,

我们只需要建user库就可以了..

WindowàpreferencesàjavaàBuild pathàUser libraries

版权声明:本文为wanping原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/wanping/archive/2013/01/18/2867007.html