Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » after intalling my plugin get NoClassDefFoundError when extension executed
after intalling my plugin get NoClassDefFoundError when extension executed [message #285282] Fri, 13 May 2005 21:02
Eclipse UserFriend
Originally posted by: albert.wehrman.ugs.com

Hi,

I am working on a project to develop an automated testing tool.
Part of this tool extends an Eclipse plug-in called Solex from
Neomalogic. My plug-in's extension point uses Solex classes (see
below). This all works fine in my workspace. But when I export it and
install it as plug-in, it throws a NoClassDefFoundError (see below) when
I press the button I added to the Solex editor.
Thanks much in advance
-Al
my code
import com.neomalogic.solex.core.HTTPSession;
import com.neomalogic.solex.gui.SessionEditor;
<snip>
public class SaveResponses extends ActionDelegate implements
IEditorActionDelegate
{
protected IEditorPart editor = null;
<snip>
public void run(IAction action)
{
if (editor != null && editor instanceof SessionEditor)
{
HTTPSession session = ((SessionEditor) editor).getHTTPSession();
<snip>

exception thrown
java.lang.NoClassDefFoundError: com/neomalogic/solex/core/HTTPSession
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)


form Solex plugin.xml
<plugin
id="com.neomalogic.solex"
name="Solex"
version="0.5.1"
provider-name="NEOMAlogic"
class="com.neomalogic.solex.gui.SolexPlugin">

<runtime>
<library name="solex.jar">
<export name="*"/>
</library>
<snip>

from my plugin.xml
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin
id="com.teamcenter.autotest"
name="Autotest Plug-in"
version="1.0.0"
provider-name="UGS"
class="com.teamcenter.autotest.AutotestPlugin">

<runtime>
<library name="autotest.jar">
<export name="*"/>
</library>
</runtime>

<requires>
<import plugin="org.eclipse.ui"/>
<import plugin="org.eclipse.core.runtime"/>
<import plugin="org.apache.ant"/>
<import plugin="com.neomalogic.solex"/>
</requires>
<snip>
<extension point="org.eclipse.ui.editorActions">
<editorContribution
id="com.teamcenter.autotest.actions.editor"
targetID="com.neomalogic.solex.gui.SessionEditor">
<action
id="com.teamcenter.autotest.actions.editor.SaveResponses"
label="Save Responses"
icon="icons/xmlDoc.jpg"
tooltip="Save responses from original run"
menubarPath="file/save"

class="com.teamcenter.autotest.actions.editor.SaveResponses ">
</action>
</editorContribution>
</extension>
</plugin>
Previous Topic:Searching files inside plugin jars
Next Topic:Re: How to close a ViewPart at shutdown?
Goto Forum:
  


Current Time: Sun Oct 06 12:33:02 GMT 2024

Powered by FUDForum. Page generated in 0.03127 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top