Hi George,
My program consists entirely of this:
#include <jni.h>
int main(int argc, char **argv)
{
JDK1_1InitArgs vm_args;
vm_args.version = 0x00010001;
JNI_GetDefaultJavaVMInitArgs(&vm_args);
}
This should work. I'm compiling with the following line:
cc -o jnitest -I<jdk115>/include -I<jdk115>/include/genunix \
jnitest.c -L<jdk115>/lib/alpha/green_threads -ljava
where <jdk115> is the location of the JDK on my Linux/Alpha box.
Thanks,
Eric
>>>>> Uncle George <[EMAIL PROTECTED]> writes:
> interesting the things people do. i myself have not tried what ur doing,
> but i suppose it is suppose to work. i'll have a look see. i suspect that
> it is mainly a prob trying to find where the root dir to the lib.so are,
> there is no libdl function that will do it . ( i suspect ). a hack was
> made, and it appears u got caught. u got more of main() code before
> InitArgs() ??
> i'd be curious as to how u linked - last time i tried i got link probs ( as
> i remem )
> gat