myEclipse开发环境常用设置

来源:互联网 发布:建材软件价格 编辑:程序博客网 时间:2024/06/05 19:25

1     安装JDK.

配置环境变量:

       JAVA_HOME = JDK的安装路径

       Path = %JAVA_HOME%/bin; %JAVA_HOME%/jre/bin;

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

 

2     tomcat安装

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

 

3     安装myEclipse

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

 

4     安装SVN

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

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

 

5     Eclipsejava运行环境设置

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     javadocjava内容助手快捷键设置

windowàpreferencesàGeneralàkeys

content Assist这个改为shift+space   in windows

 

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

Java:

WindowàpreferencesàjavaàeditoràTemplates

可用于javajavadoc,可以插入变量.

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

DTDCSS也可以设置模板

 

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àcompilerJDK版本,.windowàpreferencesàjavaà

Installed JREsJDK版本应相同.

 

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