Strange problem when plugin is in jar format (works OK in directory format) [message #81364] |
Wed, 17 January 2007 21:06  |
Eclipse User |
|
|
|
Originally posted by: olarte.andres.gmail.com
I have a very simple plugin (basically a wrapping for the log4j lib). It
was only exporting one package:
Export-Package: org.apache.log4j
Everything worked nicely, the PDE build worked great, packaged my plugin in
a jar file, and in it worked. However, I needed an extra package, so I
exported that packaged:
Export-Package: org.apache.log4j,
org.apache.log4j.xml
Now I get a ClassNotFound when running my app. I unzipped the jar into a
directory, and my app works fine again. Any idea why it's like that?
Thanks a lot for any help,
Andres
|
|
|
|
|
Re: Strange problem when plugin is in jar format (works OK in directory for [message #81495 is a reply to message #81462] |
Thu, 18 January 2007 22:39  |
Eclipse User |
|
|
|
Originally posted by: alex_blewitt.yahoo.com
You'd need to delete the config folder inside the runtime workspace (assuming that it was failing in the PDE). The easiest way to do this is to delete the launch configuration (Run -> Run... to bring the launch config window up, and then delete your entry).
The other approach is to check the box marked 'clean workspace' and 'clean configuration' on the launch config itself. That way, everything gets cleaned out (though it takes marginally longer to get up and going) but you don't see these kind of caching problems.
Alex.
|
|
|
Powered by
FUDForum. Page generated in 0.03427 seconds