I have some problems using JNI, here is the situation:
I have 2 JVM, when I type "java -version", it shows the following:
1): Classic VM (build JDK-1.2.2_008, green threads, nojit)
2): Solaris VM (build Solaris_JDK_1.2.2_09, native threads, sunwjit)
I complied the JNI and C using 1) and run the JNI 2). It seems the
java and C has problems in passing parameters. Before calling the C function, it has no problem printing the parameter. However, when I tried to print that parameter in C function, it gives me "null" sometimes. Any ideas??
Thanks,
KK