Eclipse4.6(neno)配置Tomcat插件的两种方式

来源:互联网 发布:asp源码什么 编辑:程序博客网 时间:2024/06/04 23:18

事件背景:最近正在学习开发servlet,但是在本地配置Eclipse的时候发现tomcat的插件并不方便安装,尤其是Eclipse4.6的版本已经不兼容http://www.eclipsetotale.com/tomcatPlugin.html该网页上发布的最新插件,新的方式又会受到国内网络环境的影响,所以我反复摸索,找到了一些解决方案拿来分享。

!!不能在Eclipse4.6中使用的插件网站http://www.eclipsetotale.com/tomcatPlugin.html!!
eclipsetotale
eclipsetotale

预告:
1》手动安装tomcat插件
2》在线自动安装tomcat插件
————————————————————————————————————

1》手动安装tomcat插件
首先下载net.sf.eclipse.tomcat_9.0.1.jar
分享资源:CSDN下载链接

1.将该文件放入Eclipse4.6/plugins中
plugins

2.将Eclipse4.6/configuration/org.eclipse.update删除
update

3.以管理员身份运行命令行
打开Eclipse4.6文件夹(使用命令“cd 文件夹路径”)
输入“eclipse -clean”
clean

4.等待程序启动后就能看到亲爱的小图标了
neno
tomcat

手动方式仅针对于在线安装时网络质量差,无法安装的情况,建议还是自动安装的好。
手动安装的其他方式参见——百度“手动安装Eclipse插件”
————————————————————————————————————

2》在线安装tomcat插件
1.首先安利资源网站: http://marketplace.eclipse.org/content/eclipse-tomcat-plugin
点击下载图标后复制框框中的网址:http://tomcatplugin.sf.net/update
tomcatplugins

2.打开Eclipse -> Help -> Install New Software
并在“work with”输入框内粘贴刚刚复制的网址并回车
Install

3.如果你的网络足够坚挺就看到“Tomcat Plugin”
之后点 “Next”并且同意协议后就可一键安装了
效果同第一个的效果。
这里写图片描述
我承认,上面这张图是我偷的,因为我的网络不够坚挺,会报如下错误:

Unable to read repository at http://tomcatplugin.sf.net/update/content.xml.Unable to read repository at http://tomcatplugin.sf.net/update/content.xml.Received fatal alert: handshake_failure

error
这个问题我一直很懵逼没解决,可能是因为没钱买代理吧。。。

这个插件安装好后就可以想其他教程描述的那样继续实施了~
你们百度去吧,我就不写了~

9 0