gcj, gij; Classes cannot be found?
steve
steve@netfuel.com
Mon Jun 23 21:40:00 GMT 2003
Steve,
What happens if you add -static to your compile?
gcj -o Hello --main=HelloWorld -g HelloWorld.java -static.
On my system it will only run statically. I have had this problem for a
while and have been working around it with the -static switch. a
Here is my ldd (thanks Jeff)
[steve@pascal HelloWorld]$ ldd ./HelloWorld
libgcc_s.so.1 => /opt/gcc-3.4/lib/libgcc_s.so.1 (0x40014000)
libgcj.so.4 => /opt/gcc-3.4/lib/libgcj.so.4 (0x4001e000)
libm.so.6 => /lib/i686/libm.so.6 (0x408dc000)
libpthread.so.0 => /lib/i686/libpthread.so.0 (0x408fe000)
libdl.so.2 => /lib/libdl.so.2 (0x40912000)
libc.so.6 => /lib/i686/libc.so.6 (0x42000000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
BTW, I have the same OS and tools. A31p laptop.
Steve
--
Steve Pribyl
Steve AT NetFuel dot com
Computer Infrastructure Practitioner
More information about the Java
mailing list