Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Launching Eclipse from Eclipse
Launching Eclipse from Eclipse [message #147678] Wed, 22 October 2003 12:46 Go to next message
Eclipse UserFriend
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 15:04 Go to previous messageGo to next message
Eclipse UserFriend
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 11:24 Go to previous message
Eclipse UserFriend
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
Previous Topic:setting bigger icons in toolbar
Next Topic:outline view howto
Goto Forum:
  


Current Time: Fri Jul 12 08:46:10 GMT 2024

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

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

Back to the top