plugins.config "Plugin or class not found:" exception
Posted by
Michael Doube on
Jan 30, 2009; 3:09pm
URL: http://imagej.273.s1.nabble.com/plugins-config-Plugin-or-class-not-found-exception-tp3693885.html
Hi All
I'm having trouble getting tidy menu items for my plugins.
I followed the IJ-Eclipse best practice instructions from the IJ
conference in Luxembourg and started putting my plugins in packages,
e.g. in Fit_Sphere.java
package org.doube.bone_geometry;
But then I get lots of levels of menus before I can select a plugin,
which is a pain, e.g.:
Plugins>org>doube>bone_geometry>Fit Sphere
So I wrote a plugins.config file, using these instructions:
https://list.nih.gov/cgi-bin/wa?A2=ind0804&L=IMAGEJ&P=R5626&I=-3http://imagejdocu.tudor.lu/doku.php?id=howto:plugins:howto_create_an_imagej_plugin_jar_fileBut if I put this in my plugins.config:
Plugins>Bone Geometry, "Fit Sphere", org.doube.bone_geometry.Fit_Sphere("")
I get the menu entry Plugins>Bone Geometry>Fit Sphere, but running it
throws this exception:
Plugin or class not found: "org.doube.bone_geometry.Fit_Sphere
(java.lang.ClassNotFoundException: org.doube.bone_geometry.Fit_Sphere)
Bone_Geometry.jar is saved in ~/ImageJ/plugins/ and plugins.config is in
the root directory of the jar, and all the class files are in
/org/doube/bone_geometry/ within the jar.
How can I fix this?
Cheers
Mike