一直在用Jbuilder做J2EE开发,但是现在很多人一直在用Eclipse开发,不免想起来用用了,使用Eclipse+myEclipse的具体配置如下:[@more@]1。Spring
IOC AOP AOJO
2。安装eclipse
下载eclipse的安装软件(免费的),我下载的是eclipse-SDK-3.1-win32.zip(
http://www.eclipse.org/)
3。下载开发spring所需的包
spring-framework-1.2.8-with-dependencies.zip spring-framework-1.2.8.zip
http://nchc.dl.sourceforge.net/sourceforge/springframework/spring-framework-1.2.8-with-dependencies.zip4。安装xml插件,支持xml的创建
xmlbuddy_2.0.72.zip
http://www.xmlbuddy.com/5。安装使用spring IDE
安装spring IDE之前必须先安装Graphical Editing Framewaork(显示Bean Graph)
1。help-》software updates-》find and install-》search for new-》gef
2。new remote site -》 Spring IDE
http://springide.org/updatesite/6.安装myeclipse
http://www.myeclipseide.com/ 我用的是EnterpriseWorkbenchInstaller_4.1.1GA_E3.1.exe
(要安装myeclipse 必须把xmlbuddy插件去掉,不然无法增加myeclipse代的xml编辑功能)
启动myeclipse会自动启动eclipse
7。整合tomcat(可以不必整合也可以)
整合:
下载与eclipse对应版本的plusin
http://www.sysdeo.com/sysdeo/eclipse/ 安装插件
配置:
1. 启动Eclipse
2. 打开菜单Windows->Preferences
3. 在左侧选择Tomcat,可以看到右侧出现一些表单
4. Tomcat Version选择Version 4.0.x,Tomcat Home选择Tomcat的安装路径,Configuration File中会
自动填入Tomcat的配置文件server.xml
5. 展开左侧的Tomcat菜单,选择JVM Settings,JRE选择Detected VM,
6. 按下Apply
7. 按下OK
8. 看你的工具栏中是不是多了几个小猫的图标,如果没有的话,选择菜单Windows ->Custmize Perspective,
展开other选项,在Tomcat上打勾,好了,看到小猫的图标没有。
9. 试下Start Tomcat按钮,好了,Tomcat在console中启动了。
不整合:
安装tomcat + jdk
打开菜单Windows->Preferences->myeclipse->application server ->tomcat 设置即可
注:开始我是使用的eclipse-SDK-3.1 + myeclipse4.1 +tomcat4 在发布启动tomcat后提示错误
Document root...element "web-app",...must match...DOCTYPE root "null".... 可能是web.xml的问题
后来把tomcat换成了tomcat5.5问题解决
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/300209/viewspace-846744/
,如需转载,请注明出处,否则将追究法律责任。