eclipse配置步骤

1windowspreferencesServerRuntime Environments

2、“Add”按钮,选择Tomcat v6.0

3Tomcat installation directory右边的Browse,选择Tomcat安装目录,JRE选择jdk1.6.0_30

4JRE右边的Installed JREs

5、配置了JDKDirectgry路径C:\Program Files\Java\jdk1.6.0_30

6、创建一个serverfilenewothersserverapachetomcat6.0browse选择tomcat安装路径

7、下面窗口server中右键―start

8、把web项目添加到这个servlet中,右键―add and remove

9、创建dynamic web projec,一般把default output folder改为WebContent\WEB-INF\classes 详见:E:/java/如何在eclipes里开发web项目

9.1windows->Preferences->general->Workspace Text file encoding,选择Other,改变为UTF-8

10、

我们经常会把别人的项目copy到自己这里进行二次开发或者参考。提示HttpServletRequest 不能引用

Action:

Project ->Properties -> Java Build Path -> Add Library -> Server Runtime ->next -> 选择你的Server -> Finish

 

导入的项目jdk版本不同,换成本机的jdk

Alt+enter- JavaBuild Path -> Add Library->jar system Library


11、堆栈、内存溢出

选择run configurations

在最后添加,注意:空格

-Xms512m -Xmx1024m -XX:PermSize=256M-XX:MaxPermSize=512M

12、

Eclipse操作技巧

alt+/手动控制自动提示(推荐) Window->preferences->General->Keys 找到Content Assist,首先Remove Binding(移除绑定),然后再Binding(按下Alt+/ When中选Editing Text就可以,OK

Alt +/自动带出代码

13、  不能把其他项目的文件夹copy过来,报错is out of sync with file system

选中项目-F4刷新







你可能感兴趣的:(eclipse,jdk,配置)