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