Re: plugins.config "Plugin or class not found:" exception
Posted by
Albert Cardona on
Jan 30, 2009; 3:57pm
URL: http://imagej.273.s1.nabble.com/plugins-config-Plugin-or-class-not-found-exception-tp3693885p3693886.html
> How can I fix this?
More possible fixes:
- 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.
- From the javascript window (Plugins - New - Javascript...), try:
print(Class.forName("org.doube.bone_geometry.Fit_Sphere"));
If the class is not found, the log window will throw an exception. This
at least will tell you that the ImageJ
classloader didn't pick up your jar, for some reason.
Some related comments:
- you don't need an underscore in the name of the class that implements
PlugIn, if you are using plugins.config
- 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 ("") ):
Plugins>Bone Geometry, "Fit Sphere", org.doube.bone_geometry.Fit_Sphere
For example, this is what I use for TrakEM2's plugins.config:
Plugins>TrakEM2, "New Project (from template)", ini.trakem2.New_Project
Albert
--
Albert Cardona
http://albert.rierol.net