Re: plugins.config "Plugin or class not found:" exception
Posted by Michael Doube on Jan 30, 2009; 4:23pm
URL: http://imagej.273.s1.nabble.com/plugins-config-Plugin-or-class-not-found-exception-tp3693885p3693887.html
> - check that your jar file has an underscore in its name. Otherwise it's
> not recognized as a plugin -- but I guess that is not the issue.
It is called Bone_Geometry.jar
>
>
> - From the javascript window (Plugins - New - Javascript...), try:
>
> print(Class.forName("org.doube.bone_geometry.Fit_Sphere"));
I get:
sun.org.mozilla.javascript.internal.WrappedException: Wrapped
java.lang.ClassNotFoundException: org.doube.bone_geometry.Fit_Sphere
(<Unknown source>#1) in <Unknown source> at line number 1
>
> Some related comments:
>
> - you don't need an underscore in the name of the class that implements
> PlugIn, if you are using plugins.config
I took the _ out, and called the class FitSphere, with no improvement.
> - you don't need to call the plugin with an empty string for arguments
> from the plugins.config,
> just use (note the lack of a trailing ("") ):
I took out the ("") too: no effect.
If I remove / rename plugins.config everything works fine, I just get a
deep menu to click through before I get to my plugins, so maybe I will
go back to that and do my best to observe Volker's design guidelines.
Thanks everyone,
Mike