为Eclipse IDE for Java Developers安装插件Server

Eclipse IDE for Java Developers(Android)安装插件Server

开始网上搜索说Android Developer Tools没有Server插件,因为它是供Android开发的。

找了很多安装版本都不行。后来找到了版本之后又出现问题。我记录下来吧。

首先是我的eclipse版本,从老师那直接下的,用于Android开发的。如图版本:

(查看版本:菜单栏的Help->About eclipse)

为Eclipse IDE for Java Developers安装插件Server

(一)安装Server插件

点击菜单栏Help->Install New Software.

为Eclipse IDE for Java Developers安装插件Server

在Work with中输入:http://download.eclipse.org/releases/neon 或者 点击Add 弹框中 location输入,name可以输入neon或者自己取。(最后一个斜杆后的红色字为Eclipse的版本,可在菜单栏->Help->About Eclipse查看,当然也可以输入其他Eclipse版本,相应搜索出来的插件的版本不同而已,要考虑插件兼容性)

为Eclipse IDE for Java Developers安装插件Server

如图选择Web,XML,Java EE and OSGI Enterprise Devalopment,

在这里我们需要注意的的是在别的eclipse版本中可能第二项Contact all update sites during install to find required software默认选中没出现错误,但是在我安装的这个版本中默认选中的话,会 出现下面的错误:

An error occurred while collecting items to be installed
session context was:(profile=DefaultProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,com.android.ide.eclipse.base,23.0.7.2120684

如果出现这个错误就需要把上面的第二项去掉默认勾选就可以了。

点击next一直下去就行了。

转载请标明出处:https://blog.csdn.net/qq_40720991/article/details/85066605