Administrator
|
I start VW 7.7.1 image on WinXP.
Load bundles from Contributed/JNIPort directory
JNIPort
JNIPort Prerequisites
JNIPort Tests
JNIPort Tools
JNIPort VW76 Extensions
Tried to run the code in the Bundle comment. But JNIPort.JNILibrary is undefined.
Please help.
Thanks,
Aik-Siong Koh
| vmargs env status version |
vmargs := JNIPort.JavaVMInitArgs new.
vmargs
addOption: '-verbose:jni';
ignoreUnrecognized: true.
[env := JNIPort.JNILibrary new createFirstJNIEnv: vmargs]
on: JNIPort.JNIError
do: [:error | ^Dialog warn: ('JVM startup failed with: ', (JNIPort.JNILibrary lookupErrorCode: error parameter))].
version := env GetVersion.
Transcript show: 'JNI version: '; print: (version printStringRadix: 16); cr; endEntry.
"After executing the following expressions, you will have to restart the image to be able to work with a Java VM again."
status := env javaVM DestroyJavaVM.
status ~= JNIPort.JNIInterface current JNI_OK
ifTrue: [Dialog warn: 'JVM shutdown failed with: ', (JNILibrary lookupErrorCode: error parameter)].
|