Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Using other jar in a plugin
Using other jar in a plugin [message #167984] Fri, 09 July 2004 14:41 Go to next message
Eclipse User
Originally posted by: dtwchiu.hotmail.com

Hi,

I am developing a plugin that uses code in some other jar (b.jar in my
example). Here is what I got in my plugin directory:

plugin.xml
a.jar (code for my plugin, it depends on b.jar)
b.jar (a 3rd party jar)

In the plugin.xml I have the following:

<runtime>
<library name="a.jar">
<export name="*" />
</library>
<library name="b.jar">
<export name="*" />
<packages prefixes="org.xyz.foo" />
</library>
</runtime>

The plugin works fine in debugging environment (runtime workbench).
However, when I install it and use it, eclipse keeps complaining about not
able to find the classes in b.jar. Any step I missed?

Thanks.

David.
Re: Using other jar in a plugin [message #167998 is a reply to message #167984] Fri, 09 July 2004 18:26 Go to previous messageGo to next message
Eclipse User
Originally posted by: richkulp.NO.SPAM.us.ibm.com

Try removing the package prefixes from b.jar. I've seen problems with
this if one jar has them and the other doesn't.

Also, are you sure all of the classes in b.jar are in package
org.xyz.foo, if they aren't then they won't be found.

David Chiu wrote:

> Hi,
>
> I am developing a plugin that uses code in some other jar (b.jar in my
> example). Here is what I got in my plugin directory:
>
> plugin.xml
> a.jar (code for my plugin, it depends on b.jar)
> b.jar (a 3rd party jar)
>
> In the plugin.xml I have the following:
>
> <runtime>
> <library name="a.jar">
> <export name="*" />
> </library>
> <library name="b.jar">
> <export name="*" />
> <packages prefixes="org.xyz.foo" />
> </library>
> </runtime>
>
> The plugin works fine in debugging environment (runtime workbench).
> However, when I install it and use it, eclipse keeps complaining about not
> able to find the classes in b.jar. Any step I missed?
>
> Thanks.
>
> David.
>

--
Thanks, Rich Kulp

Re: Using other jar in a plugin [message #168107 is a reply to message #167998] Sun, 11 July 2004 19:52 Go to previous messageGo to next message
Eclipse User
Originally posted by: dtwchiu.hotmail.com

Rich,

Thanks for you response. It is working fine for me now even though I am
not exactly sure what was the problem in the first place. Not sure if it
is about the multiple verions of elcipses I am switching back and forth or
I did not properly "uninstall the plugin". BTW, is there such a thing
called "uninstalling" plugin other than removing the directory and/or
replacing it with a newer version of the plugin?

Thanks.

David.

Rich Kulp wrote:

> Try removing the package prefixes from b.jar. I've seen problems with
> this if one jar has them and the other doesn't.

> Also, are you sure all of the classes in b.jar are in package
> org.xyz.foo, if they aren't then they won't be found.

> David Chiu wrote:

> > Hi,
> >
> > I am developing a plugin that uses code in some other jar (b.jar in my
> > example). Here is what I got in my plugin directory:
> >
> > plugin.xml
> > a.jar (code for my plugin, it depends on b.jar)
> > b.jar (a 3rd party jar)
> >
> > In the plugin.xml I have the following:
> >
> > <runtime>
> > <library name="a.jar">
> > <export name="*" />
> > </library>
> > <library name="b.jar">
> > <export name="*" />
> > <packages prefixes="org.xyz.foo" />
> > </library>
> > </runtime>
> >
> > The plugin works fine in debugging environment (runtime workbench).
> > However, when I install it and use it, eclipse keeps complaining about not
> > able to find the classes in b.jar. Any step I missed?
> >
> > Thanks.
> >
> > David.
> >
Re: Using other jar in a plugin [message #168268 is a reply to message #168107] Mon, 12 July 2004 11:17 Go to previous messageGo to next message
Eclipse User
Originally posted by: richkulp.NO.SPAM.us.ibm.com

I haven't heard of any way to uninstall other than to just delete it.


--
Thanks, Rich Kulp

Re: Using other jar in a plugin [message #168292 is a reply to message #168107] Mon, 12 July 2004 11:52 Go to previous message
Eclipse User
Originally posted by: daniel.megert.gmx.net

David Chiu wrote:

>Rich,
>
>Thanks for you response. It is working fine for me now even though I am
>not exactly sure what was the problem in the first place. Not sure if it
>is about the multiple verions of elcipses I am switching back and forth or
>I did not properly "uninstall the plugin". BTW, is there such a thing
>called "uninstalling" plugin other than removing the directory and/or
>replacing it with a newer version of the plugin?
>
>
Rename plugin.xml to plugin.off (or similar)

Dani

>Thanks.
>
>David.
>
>Rich Kulp wrote:
>
>
>
>>Try removing the package prefixes from b.jar. I've seen problems with
>>this if one jar has them and the other doesn't.
>>
>>
>
>
>
>>Also, are you sure all of the classes in b.jar are in package
>>org.xyz.foo, if they aren't then they won't be found.
>>
>>
>
>
>
>>David Chiu wrote:
>>
>>
>
>
>
>>>Hi,
>>>
>>>I am developing a plugin that uses code in some other jar (b.jar in my
>>>example). Here is what I got in my plugin directory:
>>>
>>>plugin.xml
>>>a.jar (code for my plugin, it depends on b.jar)
>>>b.jar (a 3rd party jar)
>>>
>>>In the plugin.xml I have the following:
>>>
>>><runtime>
>>> <library name="a.jar">
>>> <export name="*" />
>>> </library>
>>> <library name="b.jar">
>>> <export name="*" />
>>> <packages prefixes="org.xyz.foo" />
>>> </library>
>>></runtime>
>>>
>>>The plugin works fine in debugging environment (runtime workbench).
>>>However, when I install it and use it, eclipse keeps complaining about not
>>>able to find the classes in b.jar. Any step I missed?
>>>
>>>Thanks.
>>>
>>>David.
>>>
>>>
>>>
>
>
>
>
>
Previous Topic:Eclise Database plug-in ?
Next Topic:Exclude internal jars from root of tree view?
Goto Forum:
  


Current Time: Wed May 22 13:00:12 EDT 2013

Powered by FUDForum. Page generated in 0.12873 seconds