Class not found in deployed plug-in [message #143071] |
Mon, 13 October 2003 11:33  |
Eclipse User |
|
|
|
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 #143949 is a reply to message #143173] |
Tue, 14 October 2003 12:33  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.02950 seconds