Re: working with HostComputer tiff tag?
Posted by
Wayne Rasband on
Sep 15, 2009; 2:29pm
URL: http://imagej.273.s1.nabble.com/working-with-HostComputer-tiff-tag-tp3691096p3691107.html
On Sep 15, 2009, at 4:09 AM, Gabriel Landini <
[hidden email]>
wrote:
> Hi Curtis,
>
> On Monday 14 September 2009 08:57:33 Curtis Rueden wrote:
>>> The full error is (java.lang.NoClassDefFound Error:
>> Both of these errors indicate out-of-date versions of
>> loci_tools.jar. I
>> would suggest trying the latest trunk build from the Bio-Formats
>> web site.
>>
>> I have both the loci_tools.jar and the bio-formats.jar in the plugins
>>> folder.
>>> (I am not sure I need the latter?).
>>>
>>
>> You only need loci_tools.jar, not bio-formats.jar or any other JAR
>> file.
>> Best would be to remove any other Bio-Formats-related JAR files.
>
> Thank you for the tips.
> Done that, downloaded the new loci_tools,jar.
>
> The plugin at Wayne's site now works, but I tried to compile the
> code you
> sent last and I get this:
You have to temporarily rename loci_tools.jar so that the name does
not contain an underscore. The Compile and Run command automatically
adds jar files (libraries) in the plugins folder to the javac
compiler's classpath as long as they do not have an underscore in the
name.
-wayne
> /home/gabriel/ImageJ/plugins/InputOutput/TIFF_Dumper.java:12: package
> loci.common does not exist
> import loci.common.RandomAccessInputStream;
> ^
> /home/gabriel/ImageJ/plugins/InputOutput/TIFF_Dumper.java:13: package
> loci.formats.tiff does not exist
> import loci.formats.tiff.*;
> ^
> /home/gabriel/ImageJ/plugins/InputOutput/TIFF_Dumper.java:43: cannot
> find
> symbol
> symbol : class RandomAccessInputStream
> location: class TIFF_Dumper
> RandomAccessInputStream in = new RandomAccessInputStream(path);
> ^
> /home/gabriel/ImageJ/plugins/InputOutput/TIFF_Dumper.java:43: cannot
> find
> symbol
> symbol : class RandomAccessInputStream
> location: class TIFF_Dumper
> RandomAccessInputStream in = new RandomAccessInputStream(path);
> ^
> /home/gabriel/ImageJ/plugins/InputOutput/TIFF_Dumper.java:44: cannot
> find
> symbol
> symbol : class TiffParser
> location: class TIFF_Dumper
> TiffParser parser = new TiffParser(in);
> ^
> /home/gabriel/ImageJ/plugins/InputOutput/TIFF_Dumper.java:44: cannot
> find
> symbol
> symbol : class TiffParser
> location: class TIFF_Dumper
> TiffParser parser = new TiffParser(in);
> ^
> /home/gabriel/ImageJ/plugins/InputOutput/TIFF_Dumper.java:45: cannot
> find
> symbol
> symbol : class IFDList
> location: class TIFF_Dumper
> IFDList ifdList = parser.getIFDs();
> ^
> /home/gabriel/ImageJ/plugins/InputOutput/TIFF_Dumper.java:47: cannot
> find
> symbol
> symbol : class IFD
> location: class TIFF_Dumper
> for (IFD ifd : ifdList) {
> ^
> /home/gabriel/ImageJ/plugins/InputOutput/TIFF_Dumper.java:50: cannot
> find
> symbol
> symbol : variable IFD
> location: class TIFF_Dumper
> String name = IFD.getIFDTagName(k);
> ^
> 9 errors
>
> Any suggestions
>
> Regards
>
> Gabriel