当前位置: 首页 > 工具软件 > SWTBot > 使用案例 >

eclipse不能安装swtbot的解决方法

洪和平
2023-12-01


通过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



 类似资料: