eclipse不能安装swtbot的解决方法


通过eclipse install安装swtbot - http://download.eclipse.org/technology/swtbot/galileo/dev-build/update-site/出现错误如下

Cannot complete the install because one or more required items could not be found.
Software being installed: SWTBot JUnit 4.x Headless launchers for Eclipse (incubation) 2.0.2.20110117_1743-b492ddb-dev-e36 (org.eclipse.swtbot.eclipse.test.junit4.feature.group 2.0.2.20110117_1743-b492ddb-dev-e36)
Missing requirement: Headless Ant support for JUnit4 2.0.2.20110117_1743-b492ddb-dev-e36 (org.eclipse.swtbot.ant.optional.junit4 2.0.2.20110117_1743-b492ddb-dev-e36) requires 'bundle org.junit4 0.0.0' but it could not be found
Cannot satisfy dependency:
From: SWTBot JUnit 4.x Headless launchers for Eclipse (incubation) 2.0.2.20110117_1743-b492ddb-dev-e36 (org.eclipse.swtbot.eclipse.test.junit4.feature.group 2.0.2.20110117_1743-b492ddb-dev-e36)
To: org.eclipse.swtbot.ant.optional.junit4 [2.0.2.20110117_1743-b492ddb-dev-e36]

google之后看到

http://www.eclipse.org/forums/index.php/m/655600/

http://wiki.eclipse.org/SWTBot/FAQ#Using_p2_to_install_the_SWTBot_headless_feature

总结解决方法:

java -jar D:\eclipse\plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar -application org.eclipse.equinox.p2.director -repository http://download.eclipse.org/technology/swtbot/galileo/dev-build/update-site/,http://download.eclipse.org/eclipse/updates/3.6 -installIU org.eclipse.swtbot.eclipse.finder,org.eclipse.swtbot.eclipse.test.junit4.feature.group -consoleLog -noSplash

先运行上面的命令行(把D:\eclipseE\plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar改成自己eclipse里的jar的路径),然后再通过eclipse 的install安装swtbot



评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值