This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: about tools.jar and jpeg replacements
- From: Adam Megacz <megacz at cs dot berkeley dot edu>
- To: java at gcc dot gnu dot org
- Date: Sun, 05 Feb 2006 15:36:08 -0800
- Subject: Re: about tools.jar and jpeg replacements
- References: <200601091335.38093.albert@pensament.net>
Long term I would really like to see classpath/libgcj move away from a
native libjava towards this:
http://answers.google.com/answers/threadview?id=28781
(scroll to the end). You wouldn't believe how hard it was to find a
pure Java JPEG *decoder* under any sort of visible-source license.
- a
Albert <albert@pensament.net> writes:
> I'm a new user of the gcj and I wonder what is the replacement for the
> tools.jar that java programs can use to compile classes (such as ant, or
> ImageJ), and the jpeg utilities.
>
> My target is to compile the public domain ImageJ
> ( http://rsb/info.nih.gov/ij/ ) program with gcj. At the moment I'm getting 3
> errors, and they have to do with the Compiler class and the JPEG encoder
> classes:
>
> ij/plugin/Compiler.java:16: error: Type ‘sun.tools.javac.Main’ not found in
> declaration of field ‘javac’.
> ? ? ? ? private static sun.tools.javac.Main javac;
> ? ? ? ? ? ? ? ? ? ? ? ? ? ^
> ij/plugin/JpegWriter.java:40: error: Type ‘JPEGImageEncoder’ not found in the
> declaration of the local variable ‘encoder’.
> ? ? ? ? ? ? ? ?JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(f);
> ? ? ? ? ? ? ? ?^
> ij/plugin/JpegWriter.java:41: error: Type ‘JPEGEncodeParam’ not found in the
> declaration of the local variable ‘param’.
> ? ? ? ? ? ? ? ?JPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam(bi);
>
>
> I can of course just obliterate any jpeg stuff from the program and disable
> the compilation of plugins, but this is most undesirable. I anyone knows if
> replacements exist for these two, please let me know.
>
> Albert
> --
> Albert Cardona
> Molecular Cell Developmental Biology
> University of California Los Angeles
> Tel +1 310 2067376
> Programming: http://www.pensament.net/java/
> Research: http://www.mcdb.ucla.edu/Research/Hartenstein/
> Web design: http://www.pixelets.com
>
>
--
PGP/GPG: 5C9F F366 C9CF 2145 E770 B1B8 EFB1 462D A146 C380