Compiling ImageJ under OpenJDK
Posted by Ben Gamari on Sep 30, 2008; 7:58pm
URL: http://imagej.273.s1.nabble.com/Compiling-ImageJ-under-OpenJDK-tp3694898.html
Hey all,
I just tried compiling ImageJ on Fedora with OpenJDK and encountered
numerous errors of several varieties as well as nearly eight-hundred
(fairly innocuous looking) warnings. It seems like a large number of the
errors seems to revolve around the deprecated com.sun.image.codec.jpeg
package. I have included the errors below. Thanks,
- Ben
[javac] ----------
[javac] 1. ERROR in /home/ben/source/ij/io/ImageReader.java (at line 7)
[javac] import com.sun.image.codec.jpeg.*;
[javac] ^^^^^^^^^^^^^
[javac] The import com.sun.image cannot be resolved
[javac] ----------
[javac] 2. ERROR in /home/ben/source/ij/io/ImageReader.java
[javac] (at line 418)
[javac] BufferedImage bi = JPEGCodec.createJPEGDecoder(in).decodeAsBufferedImage();
[javac] ^^^^^^^^^
[javac] JPEGCodec cannot be resolved
[javac] ----------
[javac] ----------
[javac] 3. ERROR in /home/ben/source/ij/plugin/AVI_Reader.java
[javac] (at line 11)
[javac] import com.sun.image.codec.jpeg.*;
[javac] ^^^^^^^^^^^^^
[javac] The import com.sun.image cannot be resolved
[javac] ----------
[javac] ----------
[javac] 9. ERROR in /home/ben/source/ij/plugin/AVI_Reader.java
[javac] (at line 732)
[javac] bi = JPEGCodec.createJPEGDecoder(inputStream).decodeAsBufferedImage();
[javac] ^^^^^^^^^
[javac] JPEGCodec cannot be resolved
[javac] ----------
[javac] ----------
[javac] 12. ERROR in /home/ben/source/ij/plugin/Compiler.java
[javac] (at line 99)
[javac] boolean compiled = javac.compile(arguments, new PrintWriter(output))==0;
[javac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[javac] Unhandled exception type Exception
[javac] ----------
[javac] ----------
[javac] 14. ERROR in /home/ben/source/ij/plugin/filter/AVI_Writer.java
[javac] (at line 11)
[javac] import com.sun.image.codec.jpeg.*;
[javac] ^^^^^^^^^^^^^
[javac] The import com.sun.image cannot be resolved
[javac] ----------
[javac] 15. ERROR in /home/ben/source/ij/plugin/filter/AVI_Writer.java
[javac] (at line 54)
[javac] private JPEGImageEncoder jpegEncoder;
[javac] ^^^^^^^^^^^^^^^^
[javac] JPEGImageEncoder cannot be resolved to a type
[javac] ----------
[javac] ----------
[javac] 17. ERROR in /home/ben/source/ij/plugin/filter/AVI_Writer.java
[javac] (at line 371)
[javac] jpegEncoder = JPEGCodec.createJPEGEncoder(raOutputStream);
[javac] ^^^^^^^^^^^
[javac] JPEGImageEncoder cannot be resolved to a type
[javac] ----------
[javac] 18. ERROR in /home/ben/source/ij/plugin/filter/AVI_Writer.java
[javac] (at line 371)
[javac] jpegEncoder = JPEGCodec.createJPEGEncoder(raOutputStream);
[javac] ^^^^^^^^^
[javac] JPEGCodec cannot be resolved
[javac] ----------
[javac] 19. ERROR in /home/ben/source/ij/plugin/filter/AVI_Writer.java
[javac] (at line 372)
[javac] jpegEncoder.encode(bufferedImage);
[javac] ^^^^^^^^^^^
[javac] JPEGImageEncoder cannot be resolved to a type
[javac] ----------