| Modifier and Type | Method and Description |
|---|---|
static Jvm |
current() |
static JavaInfo |
forHome(File javaHome)
Creates jvm instance for given java home.
|
File |
getExecutable(String name) |
Map<String,?> |
getInheritableEnvironmentVariables(Map<String,?> envVars) |
File |
getJavadocExecutable() |
File |
getJavaExecutable() |
File |
getJavaHome()
The location of java.
|
File |
getRuntimeJar()
Returns the runtime jar.
|
boolean |
getSupportsAppleScript() |
File |
getToolsJar()
Returns the tools jar.
|
boolean |
isIbmJvm() |
boolean |
isJava5() |
boolean |
isJava5Compatible() |
boolean |
isJava6() |
boolean |
isJava6Compatible() |
boolean |
isJava7() |
String |
toString() |
public static Jvm current()
public static JavaInfo forHome(File javaHome) throws JavaHomeException, 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 locationIllegalArgumentException - when supplied javaHome is not a valid folderpublic File getJavaExecutable() throws JavaHomeException
getJavaExecutable in interface JavaInfoJavaHomeException - when executable cannot be foundpublic File getJavadocExecutable() throws JavaHomeException
getJavadocExecutable in interface JavaInfoJavaHomeException - when executable cannot be foundpublic File getExecutable(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 File getJavaHome()
getJavaHome in interface JavaInfopublic File getRuntimeJar()
getRuntimeJar in interface JavaInfopublic File getToolsJar()
getToolsJar in interface JavaInfopublic Map<String,?> getInheritableEnvironmentVariables(Map<String,?> envVars)
getInheritableEnvironmentVariables in interface JavaInfopublic boolean getSupportsAppleScript()
getSupportsAppleScript in interface JavaInfopublic boolean isIbmJvm()
Copyright © 2013. All rights reserved