Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Problems exporting plugin to zip
Problems exporting plugin to zip [message #290961] Mon, 05 September 2005 12:41 Go to next message
Eclipse UserFriend
Originally posted by: glen.vermeylen.gmail.com

I'm having a problem exporting my plugin to a zip-archive.
After a long search I've found that 2 inner classes (swt event-listeners)
aren't exported to the jarfile when using "export to zip".
There's nothing special about the 2 omitted inner classes, (they are just
2 out of 10 listeners used in the class).
This morning it all worked and the only significant change was adding a
dependency to org.eclipse.ui.console and routing my messages to the
console.

Using "export to folder" or launching the project as an eclipse
application does work however (so it's not a really big deal, but I don't
like the idea something's wrong).
Re: Problems exporting plugin to zip [message #290968 is a reply to message #290961] Mon, 05 September 2005 14:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: automatic.javalobby.org

Could you post a sample of source code that exhibits this problem? It may be the case that there's some kind of class dependency which isn't being satisfied (for example, one of your listeners refers to class X that's mentioned in your build classpath but perhaps not in your MANIFEST.MF) and the export for that particular inner class is resulting in some kind of ClassNotFoundException during the deploy phase.

If you can find anything in the .log that would be applicable, then that would be good ... in workspace\.metadata\.log or one of the plugin subdirectories)
Re: Problems exporting plugin to zip [message #290995 is a reply to message #290961] Mon, 05 September 2005 18:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wwang.liacs.nl

maybe u can "project>clean" your project and deploy it again.
Eclipse takes the first deployment version as default every time when u
deploy. Any later modification will not be updated if u deploy the plugin
without "clean". good luck. :)
Re: Problems exporting plugin to zip [message #291006 is a reply to message #290968] Tue, 06 September 2005 09:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: glen.vermeylen.gmail.com

The log just points out a NoClassDefFound stacktrace at the line of
b4.addListener:

b1.addListener(SWT.MouseUp, new AddSelectedFileListener());
b2.addListener(SWT.MouseUp, new RemoveSelectedFileListener());
b3.addListener(SWT.MouseUp, new AddAllSelectedFilesListener());
b4.addListener(SWT.MouseUp, new RemoveAllSelectedFilesListener());

This is the section of the listeners:
=====================================
private class AddSelectedFileListener implements Listener {
public void handleEvent(Event event) {
XmlCombineSettingsGui.this.addSelectedFiles();
}
}

private class RemoveSelectedFileListener implements Listener {
public void handleEvent(Event event) {
XmlCombineSettingsGui.this.removeSelectedFiles();
}
}

private class AddAllSelectedFilesListener implements Listener {
public void handleEvent(Event event) {
XmlCombineSettingsGui.this.addAllSelectedFiles();
}
}

private class RemoveAllSelectedFilesListener implements Listener {
public void handleEvent(Event event) {
XmlCombineSettingsGui.this.removeAllSelectedFiles();
}
}

private class MoveSelect...

and so on...

I went through the manifest and classpath, but found nothing of relevance.
I just realize I can add the listeners as anonymous inner classes, that
would probably *solve* the problem.
Re: Problems exporting plugin to zip [message #291008 is a reply to message #291006] Tue, 06 September 2005 10:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: glen.vermeylen.gmail.com

Using anonymous inner classes solved my problem.
I'm going to label this "weird", hope it won't happen again and move on.
Re: Problems exporting plugin to zip [message #291093 is a reply to message #291006] Wed, 07 September 2005 18:16 Go to previous message
Eclipse UserFriend
Originally posted by: automatic.javalobby.org

I wonder if it's something to do with the fact that you've labelled all of the classes as 'private' -- anonymous inner classes will be notionally public.
Previous Topic:what is a handle
Next Topic:Create an own ant build file
Goto Forum:
  


Current Time: Thu Apr 25 08:06:44 GMT 2024

Powered by FUDForum. Page generated in 0.03365 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top