D
Daniel
Hi all!
Suppose I want to create and distribute a library for use with Sun's
wireless toolkit. The library consists of a number of Java classes and
a DLL containing some native code. Is this possible at all? I know of
the following problems:
* The KVM doesn't support JNI. However, my understanding is that the
emulator in WTK uses the J2SE VM, so it should be possible anyway.
* The preverifier fails for classes using native declarations. But
mustn't the WTK itself use some native code? And there should be no
reason for this code to be pre-verified as it's runnning in the J2SE
VM. Correct? The question is, how can I add this kind of code to the
WTK?
I hope I'm making myself understood. Any help or thoughts about this
would be very appreciated. Thanks in advance!
/Daniel
Suppose I want to create and distribute a library for use with Sun's
wireless toolkit. The library consists of a number of Java classes and
a DLL containing some native code. Is this possible at all? I know of
the following problems:
* The KVM doesn't support JNI. However, my understanding is that the
emulator in WTK uses the J2SE VM, so it should be possible anyway.
* The preverifier fails for classes using native declarations. But
mustn't the WTK itself use some native code? And there should be no
reason for this code to be pre-verified as it's runnning in the J2SE
VM. Correct? The question is, how can I add this kind of code to the
WTK?
I hope I'm making myself understood. Any help or thoughts about this
would be very appreciated. Thanks in advance!
/Daniel