Build a JVM after it is destroyed

I try to call JNI_CreateVM after calling destroyVM, but it always returns -1. Is this a bug in the JDK?

I found the following link that describes the same problem: JNI Bug

The link has an example code that reproduces the problem I'm talking about. Does anyone know how to solve this problem?

Thank,

Themselves

+3
source share
2 answers

I found a couple of forum posts stating that CreateJavaVM / DestroyJavaVM / CreateJavaVM is not working; eg.

, DestroyJavaVM - JVM. , -1. JNI .

, , , Oracle // . (, "spring " , .)

+1

All Articles