Invoking gcj compile program from "c"
Andrew Haley
aph@redhat.com
Wed May 27 08:36:00 GMT 2009
Vaijayanthi Mala Suresh wrote:
> I didn't do any linking explicitly. I was assuming that if the
> library is placed under /lib folder it will get loaded automatically.
Not by default. I guess you were trying to use the
`gnu.gcj.runtime.VMClassLoader.library_control' property.
> Later I tried the following before invoking the FindClass()
>
> void *h = dlopen("/lib/libHelloWorld.so", RTLD_LAZY);
> if (h == NULL)
> {
> const char *msg = dlerror();
> printf("VMJ Error %s\n",msg);
> }
>
> It returns me an error "File Not Found"
That should work a lot better, but I'm not sure why a "File Not Found"
happens. I'd try using "strace -f -etrace=file" to see exactly which
file isn't being found.
Andrew.
More information about the Java
mailing list