public class JavaVirtualMachineDetector extends Object
Constructor and Description |
---|
JavaVirtualMachineDetector(boolean isRunningOnOsx) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsJavac(File givenDirectory) |
String |
detectExternalJdkVersion(File givenDirectory) |
String |
detectJavaHome(String systemJavaHome)
Used to detects if the default JAVA_HOME is running on a JRE and not a JDK (so that the tools.jar is missing and build's
cannot compile).
|
public JavaVirtualMachineDetector(boolean isRunningOnOsx)
public String detectJavaHome(String systemJavaHome)
The strategy is:
systemJavaHome
- What the system thinks the JAVA_HOME is - may be a JRE or a JVM!IllegalStateException
- if we are running only on a JRE as we not be able to build any builds by default!public boolean containsJavac(File givenDirectory)
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.