Invoking gcj compile program from "c"
Vaijayanthi Mala Suresh
vaijayanthimalas@gmail.com
Wed May 27 08:54:00 GMT 2009
Hi Andrew,
Sorry...I didn't get you.
Do you mean to use this common @ the prompt as given below
strace -f -etrace=libHelloWorldImp.so
If yes, then I am getting the following error
strace: invalid system call `/libHelloWorldImp.so'
Thanks
Mala
On Wed, May 27, 2009 at 2:05 PM, Andrew Haley <aph@redhat.com> wrote:
> 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