Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Problems with plugin development and external jars
Problems with plugin development and external jars [message #248833] Thu, 03 June 2004 10:11 Go to next message
Eclipse UserFriend
Originally posted by: pieter.west.NOSPAM.nl

I'm trying to deploy a plugin that uses some external jar files.
During development they were on my build path, and all went well.

However, when I deploy my plugin and start Eclipse, I get error messages
saying that classes (located in those external jars) could not be found.

In my plugin.xml I have added the jar files using the <library>-tag. I
thought that was sufficient, but apparently I'm wrong.
Could someone explain to me how I can get Eclipse to recognize these jar
files?


Greetings,
Pieter


PS I have read some old posts saying that I should create a new plugin
that export the jar files. I can than import this plugin into the main
plugin. Although I agree that this is a solution, I would rather keep the
external jar files private and not freely available.
Re: Problems with plugin development and external jars [message #248919 is a reply to message #248833] Thu, 03 June 2004 12:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

Did you add them to the build.properties file in the "Binary Build"
section so that the export/build knows they are to be exported too?

--
Thanks, Rich Kulp

Re: Problems with plugin development and external jars [message #248923 is a reply to message #248919] Thu, 03 June 2004 12:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

I misread. You are saying they are external to the plugin. That is not
permitted. They must be in the plugin itself, not external to it.

--
Thanks, Rich Kulp

Re: Problems with plugin development and external jars [message #248970 is a reply to message #248923] Thu, 03 June 2004 13:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pvanderspek.west.[NoSpAm].nl

Rich Kulp wrote:

> I misread. You are saying they are external to the plugin. That is not
> permitted. They must be in the plugin itself, not external to it.
>
Yes, they are located inside the plugin directory

> Did you add them to the build.properties file in the "Binary Build"
> section so that the export/build knows they are to be exported too?
>
Yes, they are in te build.properties file
If I export the plugin, the external jars are exported too (i.e. are put
into the zip-file)
Re: Problems with plugin development and external jars [message #249003 is a reply to message #248970] Thu, 03 June 2004 14:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

What does your <library> stmt look like? Also, are the not found msgs
coming from classes within the plugin using classes from the jar, or are
they from classes in other dependent plugins? If from a dependent
plugin, then you also need to say export="*" on your library stmt so
that the other plugins can see it.

--
Thanks, Rich Kulp

Re: Problems with plugin development and external jars [message #249217 is a reply to message #249003] Fri, 04 June 2004 03:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pieter.west.NOSPAM.nl

Rich Kulp wrote:

> What does your <library> stmt look like?

<runtime>
<library name="lib/thirdparty1.jar"/>
<library name="lib/thirdparty2.jar"/>
<library name="OvertureXML.jar">
<export name="*"/>
</library>
</runtime>

> Also, are the not found msgs
> coming from classes within the plugin using classes from the jar, or are
> they from classes in other dependent plugins?
The "not found"-messages are related to classes located inside the
thirdparty jars
Re: Problems with plugin development and external jars [message #249486 is a reply to message #249217] Fri, 04 June 2004 10:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

But what class is doing the reference to these classes in the third
party jars? Are they located in OvertureXML.jar? Or are they from some
other plugin.

If they are from some other plugin, then you need export on the
thirdparty jars too.

Could you append the actual stack trace in error?

--
Thanks, Rich Kulp

Re: Problems with plugin development and external jars [message #249528 is a reply to message #248833] Fri, 04 June 2004 10:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pieter.west.NOSPAM.nl

Pieter wrote:

> I'm trying to deploy a plugin that uses some external jar files.
> During development they were on my build path, and all went well.

> However, when I deploy my plugin and start Eclipse, I get error messages
> saying that classes (located in those external jars) could not be found.

> In my plugin.xml I have added the jar files using the <library>-tag. I
> thought that was sufficient, but apparently I'm wrong.
> Could someone explain to me how I can get Eclipse to recognize these jar
> files?


> Greetings,
> Pieter


> PS I have read some old posts saying that I should create a new plugin
> that export the jar files. I can than import this plugin into the main
> plugin. Although I agree that this is a solution, I would rather keep the
> external jar files private and not freely available.

Doesn't anyone have some bright ideas?
I'm more and more considering the dirty solution mentioned in the PS above
Re: Problems with plugin development and external jars [message #249532 is a reply to message #249486] Fri, 04 June 2004 10:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pieter.west.NOSPAM.nl

Rich Kulp wrote:

> But what class is doing the reference to these classes in the third
> party jars? Are they located in OvertureXML.jar? Or are they from some
> other plugin.
> If they are from some other plugin, then you need export on the
> thirdparty jars too.
Yes, references are being made from inside the OvertureXML.jar

> Could you append the actual stack trace in error?
I would like to, but I can't get to the necessary files right now. That'll
probably have to wait until monday
Re: Problems with plugin development and external jars [message #250317 is a reply to message #249528] Mon, 07 June 2004 21:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: a.ltelles.terra.com.br

Hi Pieter

I think I got exactally the same error.

In my plugin I use a XML parser and some other jars.

When using the PDE to start the plugin, all works fine.
But when I select the "Export -> Deployable plugin", I got a error saying
that says:
"Error occurred during the operation. A zip file containing the build logs
...... logs.zip"

This log show that he could not find the third party jars files to compile
my plugin. Veeery suspicious.
Like you all my configurations seens to be right, looks like a bug.

What I did to deploy my plugin is to right-click on the plugin.xml -> PDE
Tools -> Create Ant build file
This creates a build.xml file on the root of the plugin, then you just have
to run this build script that you will got a deployable zip file with your
plugin.

I checked the bug database and couldn't find this issue.

Anyone else got this problem?






"Pieter" <pieter@west.NOSPAM.nl> wrote in message
news:c9q13q$h30$1@eclipse.org...
> Pieter wrote:
>
> > I'm trying to deploy a plugin that uses some external jar files.
> > During development they were on my build path, and all went well.
>
> > However, when I deploy my plugin and start Eclipse, I get error messages
> > saying that classes (located in those external jars) could not be found.
>
> > In my plugin.xml I have added the jar files using the <library>-tag. I
> > thought that was sufficient, but apparently I'm wrong.
> > Could someone explain to me how I can get Eclipse to recognize these jar
> > files?
>
>
> > Greetings,
> > Pieter
>
>
> > PS I have read some old posts saying that I should create a new plugin
> > that export the jar files. I can than import this plugin into the main
> > plugin. Although I agree that this is a solution, I would rather keep
the
> > external jar files private and not freely available.
>
> Doesn't anyone have some bright ideas?
> I'm more and more considering the dirty solution mentioned in the PS above
>
>
Re: Problems with plugin development and external jars [message #251497 is a reply to message #250317] Thu, 10 June 2004 11:40 Go to previous message
Eclipse UserFriend
Hi,

> In my plugin I use a XML parser and some other jars.
In that case, it may help to use the 'Extra classpath entries' section on
the Build tab of the plugin.xml/build.properties editor.

Ciao,
Leif
Previous Topic:Problems with RC1, Java Compliance 1.4 and assert statements.
Next Topic:Close all projects before eclipse shutdown
Goto Forum:
  


Current Time: Fri Mar 14 09:13:14 EDT 2025

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

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

Back to the top