This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Error in loading the shared object
- From: Andrew Haley <aph at redhat dot com>
- To: Ashish Srivastava <ashish7s at yahoo dot com>
- Cc: java at gcc dot gnu dot org
- Date: Mon, 3 Feb 2003 19:41:32 +0000 (GMT)
- Subject: Error in loading the shared object
- References: <20030203193457.30464.qmail@web14005.mail.yahoo.com>
Ashish Srivastava writes:
> Hi,
> I created a shared object using gcj (gcc 3.2.1) and
> loaded it in the intialization configuration files of
> the web server. I got the following exception while
> restarting the server (and loading the conf files) :
>
> Configuration initialization failed: Error running
> init function load-modules: dlopen of ~/xyz/libA.so
> failed (ld.so.1: ns-httpd: fatal: relocation error:
> file ~/xyz/libA.so: symbol
> _Jv_ThrowNullPointerException: referenced symbol not
> found)
>
> where libA.so is the object created. The java class is
> simple and something like :
>
> public class A {
> public void do_something() {
> System.out.println("Say something");
> }
> }
>
> I am not sure what the error thrown really indicates.
It means that libgc.so is not in your LD_LIBRARY_PATH.
Andrew.