Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Class not found in deployed plug-in
Class not found in deployed plug-in [message #143071] Mon, 13 October 2003 15:33 Go to next message
Richard Hable is currently offline Richard HableFriend
Messages: 2
Registered: July 2009
Junior Member
Hello,

I have created some plug-in projects, which work correctly when launching
a run-time workbench within Eclipse. However, when I export the plug-ins
with "Export/Deployable plug-ins and fragments" and unpack the contents of
the generated ZIP file into a new Eclipse installation, some classes within
the JAR files are not found.

For example: In one plug-in I define a project builder extension:

...
<runtime>
<library name="ApxDependencyBuilder.jar">
<export name="*"/>
</library>
</runtime>
...
<extension
id="ApxDependencyBuilder"
name="AppXtender Dependency Builder"
point="org.eclipse.core.resources.builders">
<builder>
<run

class=" kapsch.xtender.apx.vip.dependencies.builder.JavaNotifierGene rator ">
</run>
</builder>
</extension>

When I start eclipse with this plugin.xml and ApxDependencyBuilder.jar in
the
plug-in subdirectory, I get the error message:

Plug-in ... was unable to load class
kapsch.xtender.apx.vip.dependencies.builder.JavaNotifierGene rator

although this class certainly exists within ApxDependencyBuilder.jar.
Strangely enough there are no error messages about other project builders,
which are declared similarly.

Is there anything I have to do to make Eclipse search for the class file
in the JAR file, in addition to copying plugin.xml and
ApxDependencyBuilder.jar
into a subdirectory of the eclipse/plugin directory?
Do I have to package my plug-ins into a feature? According to the PDE
Guide
("Deploying a plug-in") this should not be necessary.

Thanks in advance for any ideas,
Richard
--
Richard.Hable@kapsch.net
Re: Class not found in deployed plug-in [message #143173 is a reply to message #143071] Mon, 13 October 2003 17:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NO--SPAM.us.ibm.com

Does your builder extend or reference a class in another plugin?
Sometimes you get the message can't find a class when really what
happened was that it couldn't find a class that the class in question
referenced in some way. Did you put all required plugins into the the
<required> list of the plugin.xml? You didn't add by hand any jars or
projects to the java build path without using the plugin.xml?

Rich
Re: Class not found in deployed plug-in [message #143949 is a reply to message #143173] Tue, 14 October 2003 16:33 Go to previous message
Richard Hable is currently offline Richard HableFriend
Messages: 2
Registered: July 2009
Junior Member
Richard L. Kulp wrote:

> Does your builder extend or reference a class in another plugin?
> Sometimes you get the message can't find a class when really what
> happened was that it couldn't find a class that the class in question
> referenced in some way. Did you put all required plugins into the the
> <required> list of the plugin.xml? You didn't add by hand any jars or
> projects to the java build path without using the plugin.xml?

Yes, I am importing some classes from another plug-in. However, this
plug-in exports all its code from the jar file and I have entered the
dependency into the dependent project's plugin.xml.
The project build path is updated automatically everytime plugin.xml
is changed. So it should be correct.
As a last resort I have now put the interdependent plug-ins into one
big new plug-in project, and now the import of the classes works
correctly.
However, there are still problems reading files created with EMF.
I'll have to ask in an EMF newsgroup about that.

Thank you for your support,
Richard


> Rich
Previous Topic:Where's the M4 N&N article?
Next Topic:How to pipe into the status line?
Goto Forum:
  


Current Time: Tue Jul 16 10:07:43 GMT 2024

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

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

Back to the top