Re: Compiling ImageJ under OpenJDK
Posted by
Ben Gamari on
Oct 01, 2008; 1:24pm
URL: http://imagej.273.s1.nabble.com/Compiling-ImageJ-under-OpenJDK-tp3694898p3694900.html
Paolo Ariano wrote:
> Il giorno mar, 30/09/2008 alle 15.58 -0400, Ben Gamari ha scritto:
>
>> 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,
>>
>
> there was a thread dated 23 sept 2008 about imagej and openjdk ...
>
> it was a problem about jpeg BUT the happy conclusion was from Wayne
> announcing that "Starting with v1.41n, ImageJ saves JPEGs using ImageIO
> if the ij.plugin.JpegWriter class is missing. Removing this class should
> allow you to compile ImageJ with OpenJDK."
>
> on my debian it compile without any problem, and i hope the next week
> the new imagej, compiled with openidk will be in debian/main maybe you
> cand make a deb2rpm
>
> hth
> paolo
>
>
Yes, I saw that thread. Unfortunately, my problems seem to far broader
than yours were. Perhaps the most troubling of these is #12, "Unhandled
exception type Exception." As a programmer (although admittedly with
relatively little experience with Java, I honestly don't know what to
make of this. It definitely seems as if we should find (or begin
writing) a new JPEG library for ImageJ. Using deprecated APIs just isn't
a realistic way forward. Is there any reason why javax.imageio couldn't
be used throughout ImageJ? Thanks,
- Ben