Problem with include files in GCJ executable so that readable by getClass().getResourceAsStream()
Zilin Du
zd223@nyu.edu
Sun Apr 4 04:21:00 GMT 2004
Hi, all,
I used the GCC/GCJ from www.thisiscool.com and played with libgcj.dll + SWT. Thanks the great work of all people behind GCJ. It works great!
But I found a problem with use libgcj.dll + SWT. I wrote a java program which using
getClass().getResourceAsStream()
to load an image file which I use
gcj --resource a.gif -c a.gif a.o
compiled and linked into program.
My program runs fine with the statical libgcj.a + SWT, but when with the dynamical libgcj.dll + SWT, gcj failed with:
c:/msys/1.0/home/d6vaa/test/SWTPlayer/src/Player.java:599: undefined reference to `__gcj_personality_sj0'
which line 599 is just the line with:
getClass().getResourceAsStream()
I want to know whether anyone has the same problem or know how to work around this.
Thanks,
Zilin
More information about the Java
mailing list