about tools.jar and jpeg replacements
Adam Megacz
megacz@cs.berkeley.edu
Sun Feb 5 23:41:00 GMT 2006
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
More information about the Java
mailing list