Java Class

Used obtain the version of Java running this library.

Constructors

There are no public constructors.

Properties

version
Static variable used to store the output of getJavaVersion()

Static Methods

getVersion( ) returns int
Returns the version number of the JVM. Before Java 9, Java releases had a "1." prefix (e.g. "1.8"). This method will return the major release without the "1." prefix (e.g. 5, 6, 7, 8, 9, 10, ..., 17, etc). Returns a -1 if the version could not be determined for whatever reason.