| Modifier and Type | Method and Description |
|---|---|
static Jvm |
current() |
static JavaInfo |
forHome(java.io.File javaHome)
Creates jvm instance for given java home.
|
java.io.File |
getExecutable(java.lang.String name) |
java.util.Map<java.lang.String,?> |
getInheritableEnvironmentVariables(java.util.Map<java.lang.String,?> envVars) |
java.io.File |
getJavadocExecutable() |
java.io.File |
getJavaExecutable() |
java.io.File |
getJavaHome()
The location of java.
|
java.io.File |
getRuntimeJar()
Returns the runtime jar.
|
boolean |
getSupportsAppleScript() |
java.io.File |
getToolsJar()
Returns the tools jar.
|
boolean |
isIbmJvm() |
boolean |
isJava5() |
boolean |
isJava5Compatible() |
boolean |
isJava6() |
boolean |
isJava6Compatible() |
boolean |
isJava7() |
java.lang.String |
toString() |
public static Jvm current()
public static JavaInfo forHome(java.io.File javaHome) throws JavaHomeException, java.lang.IllegalArgumentException
javaHome - - location of your jdk or jre (jdk is safer), cannot be nullJavaHomeException - when supplied javaHome does not seem to be a valid jdk or jre locationjava.lang.IllegalArgumentException - when supplied javaHome is not a valid folderpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.io.File getJavaExecutable()
throws JavaHomeException
getJavaExecutable in interface JavaInfoJavaHomeException - when executable cannot be foundpublic java.io.File getJavadocExecutable()
throws JavaHomeException
getJavadocExecutable in interface JavaInfoJavaHomeException - when executable cannot be foundpublic java.io.File getExecutable(java.lang.String name)
throws JavaHomeException
getExecutable in interface JavaInfoJavaHomeException - when executable cannot be foundpublic boolean isJava5()
public boolean isJava6()
public boolean isJava7()
public boolean isJava5Compatible()
public boolean isJava6Compatible()
public java.io.File getJavaHome()
getJavaHome in interface JavaInfopublic java.io.File getRuntimeJar()
getRuntimeJar in interface JavaInfopublic java.io.File getToolsJar()
getToolsJar in interface JavaInfopublic java.util.Map<java.lang.String,?> getInheritableEnvironmentVariables(java.util.Map<java.lang.String,?> envVars)
getInheritableEnvironmentVariables in interface JavaInfopublic boolean getSupportsAppleScript()
getSupportsAppleScript in interface JavaInfopublic boolean isIbmJvm()
Copyright © 2013. All rights reserved