Hi,

I am trying to shutdown a Jvm instance but when I try to use a new
instance, I get a "JNIError: unknown error".

Here is what I do on OS X using Pharo 3.0:

Gofer new
smalltalkhubUser: 'JNIPort' project: 'JNIPort';
configuration;
loadVersion: '3.0-baseline'.

JNIPortJNIInterface libraryFile:
'/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Libraries/libclient.dylib'.
jvm := JVM newWithDefaultSettings.
jvm findClass: 'java.lang.String'.
"==> public final java.lang.String
Instance class: JavaLangString
Static class: StaticJavaLangObject"

jvm shutdown. "with or without this line, the below error is the same"

anotherJvm := JVM newWithDefaultSettings.

==> "JNIError: unknown error"


What am I doing wrong?

Cheers,
Doru


-- 
www.tudorgirba.com

"Every thing has its own flow"

Reply via email to