Hi Joachim, How can I drop or reinitialize the JVM reliably? The code from the previous message does not seem to work. Cheers, Tudor On Fri, Aug 7, 2015 at 12:39 PM, Tudor Girba <tudor@tudorgirba.com> wrote:
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"
-- www.tudorgirba.com "Every thing has its own flow"