Re: Scale Bar units
Posted by
Michael Schmid on
Aug 18, 2014; 4:04pm
URL: http://imagej.273.s1.nabble.com/Scale-Bar-units-tp5009167p5009257.html
Hi Ed,
Wayne's instructions work well when I try it.
Note that the file Scale_Bar.java must be in ImageJ/plugins or an immediate subfolder thereof.
You will get that exception if the file is not in ImageJ/plugins or in a folder deeper in the hierarchy, ImageJ/plugins/firstSubFolder/SecondSubFolder
Michael
________________________________________________________________
On Aug 18, 2014, at 14:53, Ed Simmons wrote:
> On 18/08/2014 13:07, Gabriel Landini wrote:
>> On Monday 18 Aug 2014 12:52:34 Ed Simmons wrote:
>>> I have just tried this with the IJ bundled with a recent MM nightly
>>> build and it gives me an error when trying to compile and run.
>>> The error says
>>> Plugin or class not found: "Scale_Bar"
>>> (java.lang.ClassNotFoundException: Scale_Bar)
>>>
>>> The same code compiles fine if it is named ScaleBar.java (the
>>> appropriate change of class name has been made) but this doesn't result
>>> in an item in the menu.
>> Perhaps the file name and the class name in the code do not match?
>> Try renaming both to the same and also include a "_" in the name so it appears
>> in the menus.
>> Cheers
>>
>> Gabriel
>>
>>
> Hi Gabriel,
>
> I thought this was the cause too - but I can only get it to compile when using no underscores in the file & class names...
>
> Thanks,
> Ed
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html