NoClassDefFoundError for ResourcePlugin [message #1030070] |
Sat, 30 March 2013 16:37 |
MIchael Laris Messages: 4 Registered: March 2013 |
Junior Member |
|
|
Howdy,
I have nearly completed my first Eclipse plugin. It is a fairly simple plugin that
allows different configurations for the application that I support at my job to be
selected. It works fine from my home system, where I did all the development and
testing, but when I exported the plugin and installed it on my work machine, I get
the following exception:
java.lang.NoClassDefFoundError: org/eclipse/core/resources/ResourcesPlugin
at zlc.xstore.config.editor.ConfigEditor.saveFile(ConfigEditor.java:640)
.....
I suspect that I have not configured the plugin correctly, but I cannot see where
my error is. My MANIFEST.MF is as follows:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: XStoreConfig
Bundle-SymbolicName: XStoreConfig; singleton:=true
Bundle-Version: 1.0.1.beta
Bundle-Activator: zlc.xstore.config.Activator
Bundle-Vendor: Michael Laris
Require-Bundle: org.eclipse.ui,org.eclipse.core.runtime,org.eclipse.co
re.resources;bundle-version="3.8.0"
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Bundle-ActivationPolicy: lazy
Export-Package: zlc.xstore.config,zlc.xstore.config.editor,zlc.xstore.
config.preferences
Bundle-ClassPath: lib/jdom-2.0.4.jar,.
and my plugin.xml is:
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="org.eclipse.ui.preferencePages">
<page
name="XStore"
class="zlc.xstore.config.preferences.XStoreConfigPreferencePage"
id="zlc.xstore.config.preferences.XStoreConfigPreferencePage">
</page>
</extension>
<extension
point="org.eclipse.core.runtime.preferences">
<initializer
class="zlc.xstore.config.preferences.PreferenceInitializer">
</initializer>
</extension>
</plugin>
I am not sure if I have an error in the declaration, or deployment.
Any assistance will be appreciated.
Mike Laris
mglaris@gmail.com
|
|
|
Re: NoClassDefFoundError for ResourcePlugin [message #1031845 is a reply to message #1030070] |
Tue, 02 April 2013 09:15 |
Greg Pugh Messages: 15 Registered: July 2009 |
Junior Member |
|
|
On 30/03/2013 23:33, MIchael Laris wrote:
> Howdy,
>
> I have nearly completed my first Eclipse plugin. It is a fairly simple plugin that
> allows different configurations for the application that I support at my job to be selected. It works fine from my home system, where I did all the
> development and
> testing, but when I exported the plugin and installed it on my work machine, I get the following exception:
>
> java.lang.NoClassDefFoundError: org/eclipse/core/resources/ResourcesPlugin
> at zlc.xstore.config.editor.ConfigEditor.saveFile(ConfigEditor.java:640)
> .....
>
> I suspect that I have not configured the plugin correctly, but I cannot see where
> my error is. My MANIFEST.MF is as follows:
>
> Manifest-Version: 1.0
> Bundle-ManifestVersion: 2
> Bundle-Name: XStoreConfig
> Bundle-SymbolicName: XStoreConfig; singleton:=true
> Bundle-Version: 1.0.1.beta
> Bundle-Activator: zlc.xstore.config.Activator
> Bundle-Vendor: Michael Laris
> Require-Bundle: org.eclipse.ui,org.eclipse.core.runtime,org.eclipse.co
> re.resources;bundle-version="3.8.0"
> Bundle-RequiredExecutionEnvironment: JavaSE-1.7
> Bundle-ActivationPolicy: lazy
> Export-Package: zlc.xstore.config,zlc.xstore.config.editor,zlc.xstore.
> config.preferences
> Bundle-ClassPath: lib/jdom-2.0.4.jar,.
>
> and my plugin.xml is:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <?eclipse version="3.4"?>
> <plugin>
>
> <extension
> point="org.eclipse.ui.preferencePages">
> <page
> name="XStore"
> class="zlc.xstore.config.preferences.XStoreConfigPreferencePage"
> id="zlc.xstore.config.preferences.XStoreConfigPreferencePage">
> </page>
> </extension>
> <extension
> point="org.eclipse.core.runtime.preferences">
> <initializer
> class="zlc.xstore.config.preferences.PreferenceInitializer">
> </initializer>
> </extension>
>
> </plugin>
>
> I am not sure if I have an error in the declaration, or deployment.
>
> Any assistance will be appreciated.
>
> Mike Laris
> mailto:mglaris@xxxxxxxx
Is your work machine running Eclipse 3.8? If it is an earlier version the org.eclipse.core.resources bundle-version="3.8.0" will fail. Look in the
..log file in the .metadata folder in your workspace to see what has been logged.
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02933 seconds