Problem with Jar wrapper [message #265686] |
Fri, 06 August 2004 06:38  |
Eclipse User |
|
|
|
Originally posted by: deathstar64.hotmail.com
Hello,
I am developing a plug-in for Eclipse and i have the following problem.
My plug-in uses the classes of an external jar so ..
-> for eclipse 2.1
I build a jar wrapper plugin which basically just contains the external
jar file.
The build properties file is:
bin.includes = plugin.xml,\
*.jar,\
lib.jar,\
libsrc.zip
The plugin.xml file is:
<?xml version="1.0" encoding="UTF-8"?>
<plugin
id="**************"
name="***********"
version="2.0.1"
provider-name="******">
<runtime>
<library name="lib.jar">
<export name="*"/>
</library>
</runtime>
</plugin>
In the 'Runtime Information' i have clicked the 'Export the Entire
Library' button too.
I then export it as a plugin, put it in the eclipse plugins directory and
i restart eclipse.
Afterwards when i try to use the libraries of this jar at MY plugin it
uses them normally.
--> for Eclipse 3.0
I use the same jar wrapper to load the external jar as a plugin for
eclipse 3.0
But this time my plugin doesn't see the classes of the library.(it throws
a ClassNotFoundDefinition exception).
The build.properties file and the plugin.xml file are exactly the same.
And concerning my plugin, i just import the code to eclipse 3.0, run the
'PDE tools-> Migrate to 3.0 ' action and nothing else.
And it seems strange to me because the same thing works in 2.1 version but
not in 3.0.Have i missed something?
Thanks for your time,
Antony
|
|
|
Re: Problem with Jar wrapper [message #265690 is a reply to message #265686] |
Fri, 06 August 2004 07:37  |
Eclipse User |
|
|
|
Originally posted by: deathstar64.hotmail.com
errr...answering my own post ...nice..
basically i deleted the eclipse directory, re-installed eclipse 3.0, did
everything as before...and now...it works perfectly..
anyway, thanks for reading this ...errr......useless post..:)
Antony
Antony wrote:
> Hello,
> I am developing a plug-in for Eclipse and i have the following problem.
> My plug-in uses the classes of an external jar so ..
> -> for eclipse 2.1
> I build a jar wrapper plugin which basically just contains the external
> jar file.
> The build properties file is:
> bin.includes = plugin.xml,
> *.jar,
> lib.jar,
> libsrc.zip
> The plugin.xml file is:
> <?xml version="1.0" encoding="UTF-8"?>
> <plugin
> id="**************"
> name="***********"
> version="2.0.1"
> provider-name="******">
> <runtime>
> <library name="lib.jar">
> <export name="*"/>
> </library>
> </runtime>
> </plugin>
> In the 'Runtime Information' i have clicked the 'Export the Entire
> Library' button too.
> I then export it as a plugin, put it in the eclipse plugins directory and
> i restart eclipse.
> Afterwards when i try to use the libraries of this jar at MY plugin it
> uses them normally.
> --> for Eclipse 3.0
> I use the same jar wrapper to load the external jar as a plugin for
> eclipse 3.0
> But this time my plugin doesn't see the classes of the library.(it throws
> a ClassNotFoundDefinition exception).
> The build.properties file and the plugin.xml file are exactly the same.
> And concerning my plugin, i just import the code to eclipse 3.0, run the
> 'PDE tools-> Migrate to 3.0 ' action and nothing else.
> And it seems strange to me because the same thing works in 2.1 version but
> not in 3.0.Have i missed something?
> Thanks for your time,
> Antony
|
|
|
Powered by
FUDForum. Page generated in 0.04015 seconds