Login  Register

Trouble executing jar Plugin - nosuchmethod error

Posted by Influenza on Mar 14, 2014; 10:45am
URL: http://imagej.273.s1.nabble.com/Trouble-executing-jar-Plugin-nosuchmethod-error-tp5006911.html

hello Everyone,

i developed a IJ Plugin with Eclipse and it used work in that environment. Now I want to publish the Plugin but I have some trouble with instlling the Plugin:

I took the jar file from the workspace directory and added a plugins.config similiar to the example. The plugin is now available at the Menu "Plugin-...".
When I tried to start it, it first threw me an UnsupportedClassVersionError whereupon I changed the System Library from Java 1.7. to Java 1.6. After replacing the .jar file and updating the .config I now get:

ImageJ 1.47v; Java 1.6.0_20 [32-bit]; Windows 7 6.1; 14MB of 1536MB (<1%)
 
java.lang.NoSuchMethodError: Gui: method <init>()V not found
        at Mikro_EvalDesk.run(Mikro_EvalDesk.java:24)
        at ij.IJ.runUserPlugIn(IJ.java:195)
        at ij.IJ.runPlugIn(IJ.java:160)
        at ij.Executer.runCommand(Executer.java:128)
        at ij.Executer.run(Executer.java:64)
        at java.lang.Thread.run(Thread.java:619)

Gui is the GUI of that Plugin and is defined in a class within the .jar file.
Can anyone solve my problem?

Thanks for your support!
Steven