This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
libgcj.so.5: cannot open shared object file
- From: Andrew Haley <aph at redhat dot com>
- To: Leston Buell <bulbul at ucla dot edu>
- Cc: java at gcc dot gnu dot org
- Date: Sat, 12 Jun 2004 16:45:12 +0100
- Subject: libgcj.so.5: cannot open shared object file
- References: <40CB2278.4060909@ucla.edu>
Leston Buell writes:
> Hello. I am running Mandrake 10 and am excited to try out compiling Java
> code with AWT or Swing to native code. I have compiled and installed gcc
> 3.4 and can compile and link a program like this:
>
> prompt$ gcj-3.4 -c -g -O Hello.java
> prompt$ gcj-3.4 --main=Hello -o Hello Hello.o
>
> However, i can't run it:
>
> prompt$ ./Hello
> prompt$ ./Hello: error while loading shared libraries:
> libgcj.so.5: cannot open shared object file:
> No such file or directory
>
> Is there some environement variable i need to set to fix this?
LD_LIBRARY_PATH should point to the dir that contains libgcj.so.5.
Andrew.