Note that there are some explanatory texts on larger screens.

plurals
  1. POPDE Junit Runner missing?
    primarykey
    data
    text
    <p>I'm developing a plugin in Eclipse, and wanted to add JUnit tests for it. I created a simple bundle and wrote a test for it. When I go to "Run As -> Junit Plug-in Test" I get:</p> <pre><code>java.lang.IllegalArgumentException: Bundle "org.eclipse.jdt.junit4.runtime" not found. Possible causes include missing dependencies, too restrictive version ranges, or a non-matching required execution environment. at org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunner.getClassLoader(RemotePluginTestRunner.java:77) at org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunner.readPluginArgs(RemotePluginTestRunner.java:93) at org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunner.init(RemotePluginTestRunner.java:83) at org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunner.main(RemotePluginTestRunner.java:61) at org.eclipse.pde.internal.junit.runtime.CoreTestApplication.run(CoreTestApplication.java:23) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:587) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:198) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584) at org.eclipse.equinox.launcher.Main.run(Main.java:1438) at org.eclipse.equinox.launcher.Main.main(Main.java:1414) An error has occurred. See the log file </code></pre> <p>I think it is probably because the PDE Junit Runner is not in my target. My target has only </p> <pre><code>&lt;location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit"&gt; &lt;unit id="org.eclipse.platform.ide" version="3.8.2.M20130131-0800"/&gt; &lt;unit id="org.junit" version="0.0.0"/&gt; &lt;unit id="org.hamcrest.core" version="0.0.0"/&gt; &lt;repository location="http://download.eclipse.org/eclipse/updates/3.8"/&gt; &lt;/location&gt; </code></pre> <p>I went looking for the PDE Runner and found it was at the releases site <code>http://download.eclipse.org/releases/helios</code>. But if I create a new target from releases and updates sites, I get errors when I launch Equinox.</p> <pre><code>&lt;location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="slicer" includeSource="true" type="InstallableUnit"&gt; &lt;unit id="org.eclipse.rcp.source.feature.group" version="3.6.2.r362_v20101104-9SAxFMKFkSAqi8axkv1ZjegmiBLY"/&gt; &lt;unit id="org.eclipse.pde.junit.runtime.addon.feature.group" version="1.0.0.v20100831"/&gt; &lt;unit id="org.eclipse.pde.junit.runtime.standalone.feature.group" version="1.0.0.v20100831"/&gt; &lt;repository location="http://download.eclipse.org/releases/helios"/&gt; &lt;/location&gt; &lt;location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="slicer" includeSource="true" type="InstallableUnit"&gt; &lt;unit id="org.eclipse.platform.ide" version="3.6.2.M20110210-1200"/&gt; &lt;repository location="http://download.eclipse.org/eclipse/updates/3.6"/&gt; &lt;/location&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload