Problems with plugin development and external jars [message #248833] |
Thu, 03 June 2004 10:11  |
Eclipse User |
|
|
|
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 #250317 is a reply to message #249528] |
Mon, 07 June 2004 21:06   |
Eclipse User |
|
|
|
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
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.04687 seconds