Login  Register

Re: plugins.config "Plugin or class not found:" exception

Posted by Michael Doube on Jan 30, 2009; 3:31pm
URL: http://imagej.273.s1.nabble.com/plugins-config-Plugin-or-class-not-found-exception-tp3693885p3693890.html

Jeffrey B. Woodward wrote:
> When I package things, I put my jars that are equivalent to your
> "Bone_Geometry.jar" in the directory ~/ImageJ/plugins/jars, and as you
> said, I put the plugins.config in the root directory of said jar file.
>
> Hope that helps/works for you,

Thanks Woody, but unfortunately it does not.

Mike

>
> -Woody
>
>
> Michael Doube wrote:
>> 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=-3
>> http://imagejdocu.tudor.lu/doku.php?id=howto:plugins:howto_create_an_imagej_plugin_jar_file 
>>
>>
>> But 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
>>
>>