欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  科技

MyEclipse安装插件的三种方法与技巧

程序员文章站 2023-01-31 11:10:53
MyEclipse安装插件的三种方法与技巧...

本文讲解myeclipse(myeclipse10)的三种方法,以testng为例

eclipse update site url:  http://beust.com/eclipse. 

一、通过myeclipse configuration center在线安装

 1. 打开myeclipse10,在菜单栏选择myeclipse→myeclipse configuration center,即可进入到myeclipse configuration center。

 2. 在myeclipse configuration center界面中点击software选项卡,在software界面中点击add site,在弹出框输入信息

      name : testng

      url :  http://beust.com/eclipse.   

 3. 等待一段时间,myeclipse configuration center界面右上角会出现 apply change,点击即可完成安装。 

二、解压安装

    下载testng的zip文件 testng-6.8.8.zip,直接把文件下的testng-6.8.8.jar解压到myeclipse安装目录下的dropins目录即可(myeclipse→myeclipse 10→dropins),重启即可。

 第一步: 下载插件org.testng.eclipse_5.12.0.6.jar。

第二步: 放在在myeclipse安装目录下的dropins目录即可(myeclipse→myeclipse 10→dropins),

         MyEclipse安装插件的三种方法与技巧            

第三步:重启myeclipse。

MyEclipse安装插件的三种方法与技巧

 重启,提示部署成功,选择ok。后再运行项目

MyEclipse安装插件的三种方法与技巧

  三、创建link文件指向插件位置(推荐)

    1. 同样下载testng的zip文件 testng-6.8.8.zip,解压到任意位置

    2. 在myeclipse安装目录下的dropins目录创建.link文件,如testng.link。

    3. 编辑testng.link文件,输入 path=第一步解压的文件夹所在的目录,如 path=d:/plugin/testng。重启即可。

使用心得:

使用在线下载很慢。最快的使用方法是第二种方法。在使用以上三种方法都无法安装成功后,可以考虑卸载myeclipse后重新安装再用第二种方法安装插件。 

相关标签: Myeclipse 插件