This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: gcj, gij; Classes cannot be found?
- From: steve <steve at netfuel dot com>
- To: java at gcc dot gnu dot org, weppnesp at eckerd dot edu, Jeff Sturm<jsturm at one-point dot com>
- Date: Mon, 23 Jun 2003 16:29:24 -0500
- Subject: Re: gcj, gij; Classes cannot be found?
- Organization: Netfuel
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