Class JVM
java.lang.Object
org.eclipse.lemminx.utils.platform.JVM
JVM information
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the JAVA_HOME environment variable Do not include this information in telemetry, as it likely includes the user's nameReturns the information on the memorygetName()Returns the JVM nameReturns the JVM runtime name.Returns the JVM versionbooleanReturns true if the server is a native image and false otherwise
-
Constructor Details
-
JVM
public JVM()
-
-
Method Details
-
getName
Returns the JVM name- Returns:
- the JVM name
-
getVersion
Returns the JVM version- Returns:
- the JVM version
-
getRuntime
Returns the JVM runtime name.- Returns:
- the JVM runtime name.
-
getMemory
Returns the information on the memory- Returns:
- the information on the memory
-
getJavaHome
Returns the value of the JAVA_HOME environment variable Do not include this information in telemetry, as it likely includes the user's name- Returns:
- the value of the JAVA_HOME environment variable
-
isNativeImage
public boolean isNativeImage()Returns true if the server is a native image and false otherwise- Returns:
- true if the server is a native image and false otherwise
-