Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Using external JARs in a PlugIn
Using external JARs in a PlugIn [message #153355] Thu, 06 November 2003 03:20 Go to next message
Eclipse UserFriend
Originally posted by: mschuhma.ftisoft.at

Hi All,

How can I use external JAR's in my eclipse plug-in?
I'm able to add them to by project using the "Java Build Path / Libraries"
page. I'm then able to compile all my code - but as soon as I run my project
as "Run-Time Workbench" I cannot access the classes in the external jars (no
classdef found).

I also tried putting the jars inside my project root and added them with the
"Add JARs..." button --> same result.

Am I missing something? Can I somehow tell the "Runtime Workbench" target to
pick up my external jars?


Any help is much appreciated!

Regards,
Martin.
Re: Using external JARs in a PlugIn [message #153446 is a reply to message #153355] Thu, 06 November 2003 05:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Martin Schuhmayer wrote:

>Hi All,
>
>How can I use external JAR's in my eclipse plug-in?
>
>
You cannot. Everything your plug-in references has either to be in a
required plug-in or inside your plug-in.

Dani

>I'm able to add them to by project using the "Java Build Path / Libraries"
>page. I'm then able to compile all my code - but as soon as I run my project
>as "Run-Time Workbench" I cannot access the classes in the external jars (no
>classdef found).
>
>I also tried putting the jars inside my project root and added them with the
>"Add JARs..." button --> same result.
>
>Am I missing something? Can I somehow tell the "Runtime Workbench" target to
>pick up my external jars?
>
>
>Any help is much appreciated!
>
>Regards,
>Martin.
>
>
>
>
Re: Using external JARs in a PlugIn [message #153708 is a reply to message #153446] Thu, 06 November 2003 13:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: frankc-ns.t310.org

Daniel Megert wrote:

> Martin Schuhmayer wrote:
>
>> Hi All,
>>
>> How can I use external JAR's in my eclipse plug-in?
>>
>>
> You cannot. Everything your plug-in references has either to be in a
> required plug-in or inside your plug-in.
>
> Dani
>

Not really true. You can add the <lib>.jar to your plugin and add a
<library name="<lib>.jar/> in your plugin.xml in the runtime section.
You also need to do add <lib>.jar to your bin.includes proporty in the
build.properties file before you generate the build.xml file for
deploying your plugin.

Regards,

Frank C
Re: Using external JARs in a PlugIn [message #153796 is a reply to message #153708] Thu, 06 November 2003 15:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: meshcheryakovsemen.hotmail.com

"Frank Cornelissen" <frankc-ns@t310.org> wrote in message
news:boe484$kn7$1@eclipse.org...
> Daniel Megert wrote:
>
> > Martin Schuhmayer wrote:
> >
> >> Hi All,
> >>
> >> How can I use external JAR's in my eclipse plug-in?
> >>
> >>
> > You cannot. Everything your plug-in references has either to be in a
> > required plug-in or inside your plug-in.
> >
> > Dani
> >
>
> Not really true. You can add the <lib>.jar to your plugin and add a
> <library name="<lib>.jar/> in your plugin.xml in the runtime section.
> You also need to do add <lib>.jar to your bin.includes proporty in the
> build.properties file before you generate the build.xml file for
> deploying your plugin.
>
> Regards,
>
> Frank C

> > You cannot. Everything your plug-in references has either to be in a
> > required plug-in or inside your plug-in.

Isn't <lib>.jar inside your plugin?

-- Sam
Re: Using external JARs in a PlugIn [message #153958 is a reply to message #153708] Fri, 07 November 2003 02:42 Go to previous message
Eclipse UserFriend
Originally posted by: mschuhma.ftisoft.at

Thanks for your hints - that worked!

"Frank Cornelissen" <frankc-ns@t310.org> wrote in message
news:boe484$kn7$1@eclipse.org...
> Daniel Megert wrote:
>
> > Martin Schuhmayer wrote:
> >
> >> Hi All,
> >>
> >> How can I use external JAR's in my eclipse plug-in?
> >>
> >>
> > You cannot. Everything your plug-in references has either to be in a
> > required plug-in or inside your plug-in.
> >
> > Dani
> >
>
> Not really true. You can add the <lib>.jar to your plugin and add a
> <library name="<lib>.jar/> in your plugin.xml in the runtime section.
> You also need to do add <lib>.jar to your bin.includes proporty in the
> build.properties file before you generate the build.xml file for
> deploying your plugin.
>
> Regards,
>
> Frank C
>
Previous Topic:RFF (prelim.) in EditorToolbars to solve usability problem
Next Topic:A zany refactoring question
Goto Forum:
  


Current Time: Tue Jul 22 07:43:31 EDT 2025

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

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

Back to the top