Re: don't understand JNI

1998-08-12 Thread Ming-Ching Tiew
Fan Howard-W12211 wrote: > > Hello, > > I run into problem with JNI. Seems it can't set field variable, nor can > it be used in Thread. Here's my program: > > fd1=(*Env)->GetIntField(Env,jcls,jfd)+1; > jcls should be jobj > (*Env)->SetIntField(Env, jcls, jfd, fd1); > jcls should

don't understand JNI

1998-08-12 Thread Fan Howard-W12211
Hello, I run into problem with JNI. Seems it can't set field variable, nor can it be used in Thread. Here's my program: //HelloWorld.java import java.lang.*; class HelloWorld extends Thread{ int fd=-1; public native void displayHelloWorld(); public native void sayFd(); public void run()