Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java !消息引用部分尚不存在:org.eclipse.jdt.ui.PackageExplorer_Java_Eclipse_Plugins_Eclipse Rcp_Swtbot - Fatal编程技术网

Java !消息引用部分尚不存在:org.eclipse.jdt.ui.PackageExplorer

Java !消息引用部分尚不存在:org.eclipse.jdt.ui.PackageExplorer,java,eclipse,plugins,eclipse-rcp,swtbot,Java,Eclipse,Plugins,Eclipse Rcp,Swtbot,我在为我的产品运行测试仪插件(使用SWTBot)时遇到此错误: !ENTRY org.eclipse.ui 4 4 2013-11-07 18:16:48.608 !MESSAGE Referenced part does not exist yet: org.eclipse.jdt.ui.PackageExplorer. 2013-11-07 18:16:48,611 main ERROR 此外,我得到的这个例外基本上是说我没有将我的测试仪插

我在为我的产品运行测试仪插件(使用SWTBot)时遇到此错误:

!ENTRY org.eclipse.ui 4 4 2013-11-07 18:16:48.608
!MESSAGE Referenced part does not exist yet: org.eclipse.jdt.ui.PackageExplorer.
2013-11-07 18:16:48,611 main ERROR                         
此外,我得到的这个例外基本上是说我没有将我的测试仪插件设置为我的产品的依赖项:

Exception in thread "WorkbenchTestable" java.lang.IllegalArgumentException: No Classloader found for plug-in com.project.test.swtbot
    at org.eclipse.swtbot.eclipse.core.RemotePluginTestRunner.getClassLoader(RemotePluginTestRunner.java:79)
    at org.eclipse.swtbot.eclipse.core.RemotePluginTestRunner.getTestClassLoader(RemotePluginTestRunner.java:73)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadClass(RemoteTestRunner.java:693)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadClasses(RemoteTestRunner.java:429)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:452)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at org.eclipse.swtbot.eclipse.core.RemotePluginTestRunner.main(RemotePluginTestRunner.java:64)
    at org.eclipse.swtbot.eclipse.core.UITestApplication.runTests(UITestApplication.java:117)
    at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(WorkbenchTestable.java:71)
    at java.lang.Thread.run(Thread.java:619)
我正在使用EclipseRCP。我对错误的解释正确吗?有人知道如何解决这个问题吗


提前非常感谢

尝试运行配置->插件->验证插件->添加所需插件

解决了这个问题。对于存在此问题的任何人,您应该始终在启动配置中使用(除非发生令人毛骨悚然的事情)“所有工作区和已启用的目标插件”。这使您的测试能够验证您可能没有考虑的每个依赖项


干杯

谢谢@Michael,但已经这么做了,问题仍然存在。