|
Bugzilla – Bug 52 |
ImageJA doesn't build under openjdk |
Last modified: 2009-07-09 18:40:27 CDT |
| ⚠ |
NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug. The Fiji project now uses GitHub Issues for issue tracking. Please file all new issues there. |
|
|
|
||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
|
|||||
At the moment, ImageJ (e.g. the "current" branch) builds under openjdk but ImageJA (e.g. the "fiji" branch) fails to build with the errors below in JPEGWriter. There was a fix introduced in ImageJ 1.41n 52eb5b6f0f9886ed5 - was there a reason for not merging that in? ./ImageJA/ij/plugin/filter/AVI_Writer.java:54: warning: com.sun.image.codec.jpeg.JPEGImageEncoder is Sun proprietary API and may be removed in a future release private JPEGImageEncoder jpegEncoder; ^ ./ImageJA/ij/io/ImageReader.java:431: warning: com.sun.image.codec.jpeg.JPEGCodec is Sun proprietary API and may be removed in a future release BufferedImage bi = JPEGCodec.createJPEGDecoder(in).decodeAsBufferedImage(); ^ ./ImageJA/ij/plugin/AVI_Reader.java:732: warning: com.sun.image.codec.jpeg.JPEGCodec is Sun proprietary API and may be removed in a future release bi = JPEGCodec.createJPEGDecoder(inputStream).decodeAsBufferedImage(); ^ ./ImageJA/ij/plugin/JpegWriter.java:46: warning: com.sun.image.codec.jpeg.JPEGImageEncoder is Sun proprietary API and may be removed in a future release JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(f); ^ ./ImageJA/ij/plugin/JpegWriter.java:46: warning: com.sun.image.codec.jpeg.JPEGCodec is Sun proprietary API and may be removed in a future release JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(f); ^ ./ImageJA/ij/plugin/JpegWriter.java:47: warning: com.sun.image.codec.jpeg.JPEGEncodeParam is Sun proprietary API and may be removed in a future release JPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam(bi); ^ ./ImageJA/ij/plugin/JpegWriter.java:50: cannot find symbol symbol : method setHorizontalSubsampling(int,int) location: class com.sun.image.codec.jpeg.JPEGEncodeParam param.setHorizontalSubsampling(1, 1); ^ ./ImageJA/ij/plugin/JpegWriter.java:51: cannot find symbol symbol : method setHorizontalSubsampling(int,int) location: class com.sun.image.codec.jpeg.JPEGEncodeParam param.setHorizontalSubsampling(2, 1); ^ ./ImageJA/ij/plugin/JpegWriter.java:52: cannot find symbol symbol : method setVerticalSubsampling(int,int) location: class com.sun.image.codec.jpeg.JPEGEncodeParam param.setVerticalSubsampling(1, 1); ^ ./ImageJA/ij/plugin/JpegWriter.java:53: cannot find symbol symbol : method setVerticalSubsampling(int,int) location: class com.sun.image.codec.jpeg.JPEGEncodeParam param.setVerticalSubsampling(2, 1); ^ ./ImageJA/ij/plugin/JpegWriter.java:61: warning: com.sun.image.codec.jpeg.JPEGEncodeParam is Sun proprietary API and may be removed in a future release param.setDensityUnit(JPEGEncodeParam.DENSITY_UNIT_DOTS_INCH); ^ ./ImageJA/ij/plugin/JpegWriter.java:61: cannot find symbol symbol : variable DENSITY_UNIT_DOTS_INCH location: class com.sun.image.codec.jpeg.JPEGEncodeParam param.setDensityUnit(JPEGEncodeParam.DENSITY_UNIT_DOTS_INCH); ^ ./ImageJA/ij/plugin/filter/AVI_Writer.java:372: warning: com.sun.image.codec.jpeg.JPEGCodec is Sun proprietary API and may be removed in a future release jpegEncoder = JPEGCodec.createJPEGEncoder(raOutputStream); ^Created attachment 2 A patch so that 8 bit grayscale images are written as grayscale JPEGs