Plugin or class not found error

Posted by cihat eldeniz on
URL: http://imagej.273.s1.nabble.com/Plugin-or-class-not-found-error-tp3693851.html

Hello,

I am designing a GUI-based plugin in SWT using Visual Editor 1.2.1 on
Eclipse 3.2 [Callisto].

The importing of ImageJ into Eclipse is quite usefully illustrated in
the Tutorials section of the ImageJ wiki. The problem I have is that
when I run the very simple "Hello World" program, things are all fine. I
can copy the output jar file into the plugins folder of imagej and it
works! However, when it comes to design a very simplistic GUI-based
plugin which has just one shell and only one button with no
functionality on the shell, unfortunately I could not get things
working. Firstly, when I go to run->debug within the visual editor,
ImageJ opens, I see the plugin in the plugins menu, I click, but there
is no answer. Secondly, I copy the jar file into the plugins folder of
full imagej, again I see it in the menu, but when I click, I get an
error message which says [assuming the name of the plugin is TEST_PLUGIN]

Plugin or class not found: TEST_PLUGIN
(java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Composite)

Any ideas? Your suggestions would be highly appreciated.

Thank you very much.