| Using other jar in a plugin [message #167984] |
Fri, 09 July 2004 14:41  |
|
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   |
|
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   |
|
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 #168292 is a reply to message #168107] |
Mon, 12 July 2004 11:52  |
|
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.
>>>
>>>
>>>
>
>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.12873 seconds