Launching Eclipse from Eclipse [message #147678] |
Wed, 22 October 2003 08:46  |
Eclipse User |
|
|
|
Originally posted by: brogger.daimi.au.dk
Hi.
Im developing a plugin and in the plug-in code there is need for classes
in a JAR file. So I add this JAR file as I add all of the others (the
ones that comes from other plugins): Properties->Java Build Path, Add
External JARS.
In the Java files where, I use the classes, I import the ones I need and
it compiles without errors or warnings. But when I launch the test
Eclipse platform from Eclipse something goes wrong. When trying to load
the classes an error occurs: java.lang.NoClassDefFoundError.
So is it only possible to load JARs when they are available in other
plug-ins? If so, then I have to export the project, shut down Eclipse,
install the project and start up Eclipse - to be able to test my
plug-in.!?!?
Thanks,
Mads
|
|
|
Re: Launching Eclipse from Eclipse [message #147747 is a reply to message #147678] |
Wed, 22 October 2003 11:04   |
Eclipse User |
|
|
|
Originally posted by: nosse.de.ibm.com
Hi Mads,
try to include the jar file you added manually to you compile class path
in the plugin.xml file under the <runtime> section.
Example:
...
<runtime>
<library name="plugin.jar"/>
</runtime>
For plugin dependencies, Eclipse handles this markup for you, as you may
see from the <requires> section.
Regards,
Markus
Mads Brogger Enevoldsen wrote:
> Hi.
> Im developing a plugin and in the plug-in code there is need for classes
> in a JAR file. So I add this JAR file as I add all of the others (the
> ones that comes from other plugins): Properties->Java Build Path, Add
> External JARS.
> In the Java files where, I use the classes, I import the ones I need and
> it compiles without errors or warnings. But when I launch the test
> Eclipse platform from Eclipse something goes wrong. When trying to load
> the classes an error occurs: java.lang.NoClassDefFoundError.
> So is it only possible to load JARs when they are available in other
> plug-ins? If so, then I have to export the project, shut down Eclipse,
> install the project and start up Eclipse - to be able to test my
> plug-in.!?!?
> Thanks,
> Mads
|
|
|
Re: Launching Eclipse from Eclipse [message #148123 is a reply to message #147747] |
Thu, 23 October 2003 07:24  |
Eclipse User |
|
|
|
Originally posted by: brogger.daimi.au.dk
Markus Nosse wrote:
> Hi Mads,
>
> try to include the jar file you added manually to you compile class path
> in the plugin.xml file under the <runtime> section.
>
> Example:
> ...
> <runtime>
> <library name="plugin.jar"/>
> </runtime>
>
> For plugin dependencies, Eclipse handles this markup for you, as you may
> see from the <requires> section.
>
>
Yes! Thank you! Now it works.
--Mads
|
|
|
Powered by
FUDForum. Page generated in 0.03461 seconds