0

私は日食にプラグインを持っています。これは完璧に機能します。ここで、ヘッドレス プラグイン機能を実装する必要があります。

plugin.xml に次のコードを追加しました

<extension
     id="id1"
     point="org.eclipse.core.runtime.applications">
  <application>
     <run
           class="de.**.HeadlessPlugin">
     </run>
  </application>

次に、次のクラス「HeadlessPlugin」を作成しました

package de.tsystems.together.mqc.impl;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IExecutableExtensionFactory;
import org.eclipse.core.runtime.IPlatformRunnable;
import org.eclipse.equinox.app.IApplication;
import org.eclipse.equinox.app.IApplicationContext;


public class HeadlessPlugin implements IExecutableExtensionFactory {  

    public HeadlessPlugin()
    {

    }

    public Object create() throws CoreException {
        System.out.println("Hello world");
        return null;
    }  
}  

プラグインを正しくエクスポートし、同じものを新しい Eclipse インスタンスにインストールしました。次に、cmd を使用してプラグインを起動しようとします。

java -jar "plugins/org.ecplise.equinox.launcher_1.1.1.R36x_v20101122_1400.jar" org.eclipse.core.launcher.Main -application de.***.id1

この日食後にエラーが発生しました:

org.eclipse.core.runtime.CoreException: プラグイン de. * クラス de.* .HeadlessPlugin. をロードできませんでした。

誰にもアイデアはありますか??

スタックトレース:

!ENTRY org.eclipse.osgi 4 0 2013-08-19 14:15:47.344 
!MESSAGE Application error 
!STACK 1 
org.eclipse.core.runtime.CoreException: Plug-in de.** was unable to load class de.**.HeadlessPlugin. 
...
Caused by: org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$TerminatingClassNotFoundException: An error occurred while automatically activating bundle de.** (1522). 
...
Caused by: org.osgi.framework.BundleException: The activator de.**.Plugin for bundle de.** is invalid 
...
Caused by: java.lang.NoClassDefFoundError: org/eclipse/ui/plugin/AbstractUIPlugin 
4

1 に答える 1