java.lang.Objectcom.install4j.api.JVMSelector
public class JVMSelector
With this class, you can retrieve the installed JVMs on Windows, Linux and Unix systems. Additionally, you can set the preferred VM for your application.
| Nested Class Summary | |
|---|---|
static interface |
JVMSelector.JVMLocation
The interface providing information about a JVM. |
| Method Summary | |
|---|---|
static JVMSelector.JVMLocation[] |
getJVMLocations()
Returns JVMs found in standard locations. |
static void |
setPreferredJVM(java.lang.String javaHome)
Set the preferred JRE/JDK for your application. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static JVMSelector.JVMLocation[] getJVMLocations()
public static void setPreferredJVM(java.lang.String javaHome)
javaHome - the base directory of the JDK/JRE.