Activator issues [message #99143] |
Tue, 02 October 2007 07:44  |
Eclipse User |
|
|
|
Originally posted by: slider161.hotmail.com
I am writing an Ant script to run a JUnit test suite within an Eclipse plug-in and generate a JUnit report outside of Eclipse. I am referring to this tutorial http://dev.eclipse.org/viewcvs/index.cg ... ision=1.4. I have written a test.xml file for my plug-in
which uses the org.eclipse.test library.xml file run the suite and generate a report.
I am getting an error "org.osgi.framework.BundleException: The activator com.propylon.core.tests.Activator for bundle com.propylon.core.Test is invalid".
Caused by: java.lang.NoClassDefFoundError: org/eclipse/ui/plugin/AbstractUIPlugin
I am not using AbstractUIPlugin as an activator. I have set the Activator as org.eclipse.core.runtime.Plugin yet I still get the same error, Why?
Below is the manifest file for my plugin
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Tests Plug-in
Bundle-SymbolicName: com.propylon.core.Test;singleton:=true
Bundle-Version: 1.0.0
Bundle-Activator: org.eclipse.core.runtime.Plugin
Bundle-Vendor: PROPYLON
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
com.propylon.core.repository,
org.eclipse.core.resources,
org.tmatesoft.svnkit,
org.eclipse.ui.navigator,
org.junit
Eclipse-LazyStart: true
Bundle-ClassPath: junit.plugin.jar,
.
Export-Package: com.propylon.core.tests,
junit.awtui,
junit.extensions,
junit.framework,
junit.runner,
junit.swingui,
junit.swingui.icons,
junit.textui
|
|
|
|
Re: Activator issues [message #99641 is a reply to message #99160] |
Fri, 12 October 2007 15:36  |
Eclipse User |
|
|
|
David Cunningham schrieb:
> I have tried using the "org.eclipse.core.runtime.Plugin" as the activator
That class is abstract and can't be instantiated at runtime. You have to
use a concrete subclass.
>
> "The activator org.eclipse.core.runtime.Plugin for bundle com.propylon.core.Test is invalid"
>
> "Caused by: java.lang.InstantiationException"
>
> I don't see why that is happening.
>
> thank you for your time.
>
> David
|
|
|
Powered by
FUDForum. Page generated in 0.07047 seconds