Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I've fixed it. JMock plugin, which I initially created, was the following:</p> <p>plugin.xml:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;?eclipse version="3.0"?&gt; &lt;plugin id="jmock-2.5.1" name="JMockClasses Plug-in" version="1.0.0" provider-name=""&gt; &lt;runtime&gt; &lt;library name="bsh-core-2.0b4.jar"&gt; &lt;export name="*"/&gt; &lt;/library&gt; &lt;library name="cglib-2.1_3-src.jar"&gt; &lt;export name="*"/&gt; &lt;/library&gt; ... &lt;library name="jmock-2.5.1.jar"&gt; &lt;export name="*"/&gt; &lt;/library&gt; &lt;library name="jmock-junit4-2.5.1.jar"&gt; &lt;export name="*"/&gt; &lt;/library&gt; ... &lt;/runtime&gt; &lt;requires&gt; &lt;import plugin="org.eclipse.core.runtime.compatibility"/&gt; &lt;/requires&gt; &lt;/plugin&gt; </code></pre> <p>i. e. it was just a library on my classpath. I've changed it to the following: META-INF/MANIFEST.MF:</p> <pre><code>Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: JMockPlugin Bundle-SymbolicName: org.jmock_2.5.1 Bundle-Version: 1.0.0.qualifier Bundle-Activator: jmock.Activator Require-Bundle: org.eclipse.ui, org.eclipse.core.runtime, org.junit4 Bundle-RequiredExecutionEnvironment: JavaSE-1.6 Bundle-ActivationPolicy: lazy Bundle-ClassPath: bsh-core-2.0b4.jar, cglib-2.1_3-src.jar, cglib-nodep-2.1_3.jar, hamcrest-core-1.1.jar, hamcrest-library-1.1.jar, jmock-2.5.1.jar, jmock-junit3-2.5.1.jar, jmock-junit4-2.5.1.jar, jmock-legacy-2.5.1.jar, jmock-script-2.5.1.jar, objenesis-1.0.jar </code></pre> <p>Now Eclipse OSGI classloader is able to load my JMockPlugin and I do not have any problems.</p>
 

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