gcj, gij; Classes cannot be found?

weppnesp@eckerd.edu weppnesp@eckerd.edu
Tue Jun 24 00:37:00 GMT 2003


Quoting steve <steve@netfuel.com>:

> 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
> 
> 


the static switch worked for me too !

Here is the "problamatic" dynamic linker
[root@hildegard2 java]# ldd ./Hello
	libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1 (0x40014000)
	libgcj.so.4 => /usr/local/lib/libgcj.so.4 (0x4001d000)
	libm.so.6 => /lib/i686/libm.so.6 (0x40817000)
	libpthread.so.0 => /lib/i686/libpthread.so.0 (0x40839000)
	libdl.so.2 => /lib/libdl.so.2 (0x4084d000)
	libc.so.6 => /lib/i686/libc.so.6 (0x42000000)
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
----------------------------------------------------------------
I will follow with traces on the next mail...

Thanks for your help!
   Steve


--------------------------------------------------------
This mail sent via Eckerd IMP: http://webmail.eckerd.edu



More information about the Java mailing list