This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: about tools.jar and jpeg replacements
>>>>> "Albert" == Albert Cardona <cardona@ucla.edu> writes:
Albert> Thanks for the input. I will see what can I do with java-gcj-compat
Albert> As for the jpeg, what ImageJ uses now is sun's library ( import
Albert> com.sun.image.codec.jpeg.* ).
Ok. We definitely don't support that package.
In general we don't implement com.sun.* or sun.* (the stuff in
tools.jar being a big exception).
Albert> ** ERROR **:
Albert> file ../../../src/libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImage.c: line
Albert> 572 (createRawData): assertion failed: (data_fid != 0)
Albert> aborting...
I think this is a known bug in gcj 4.0.x.
I'm not completely sure though.
Albert> I would like to run it through the GDB, therefore the need to
Albert> generate an .o file.
Albert> Could anyone help on that? Thanks for any hints.
There should be some simple examples floating around... it is much
like the C compiler. Use 'gcj -c' to convert .java->.o. Do this for
each .java file, creating a bunch of .o files. Then link them with
'gcj --main=fully.qualified.class.Name *.o -o Program'.
Finally, run 'Program'.
Tom