Class JVM
java.lang.Object
org.apidesign.jvm.channel.JVM
Represents another JVM inside of the current process. Provides a
factory method to boot a HotSpot JVM from inside of a
GraalVM native image application. Allows one to easily execute a
main method in the other JVM via executeMain(String, String...). See
Channel for more intricate communication between the JVMs.- See Also:
-
Method Summary
-
Method Details
-
create
Create new JVM. Either HotSpot JVM or natively compiled JVM. UseexecuteMain(String, String...)to launch a main method inside of the JVM. UseChannel.create(JVM, Class)to establish a channel to send more intricate messages to the JVM.- Parameters:
path- path where the JDK is installed - either path to the HotSpot JVM directory or direct path to the dynamic library that contains theJNI_CreateJavaVMentry pointoptions- parameters to pass to the JVM- Returns:
- new instance of the JVM
-
executeMain
-