Overview
Package
Class
Use
Tree
Deprecated
Index
All Classes
Help
Prev Class
Next Class
VUtils – Release 1
Class org.violetlib.util.JavaPlatform
Inherited members: ShowHide
Deprecated: ShowHide
org.violetlib.util

Class JavaPlatform

  • Object
    • JavaPlatform
  • public final class JavaPlatform extends Object
    Obtain information about the Java plaatform.
    • Static Methods 
      Modifier and Type Static Method and Description
      Ordinary member indicator getJavaMajorVersion Reveal DetailHide Detail
      static int getJavaMajorVersion()
      Identify the Java major version.
      public static int getJavaMajorVersion() throws UnsupportedOperationException
      Identify the Java major version.
      Returns:
      the Java major version, e.g. 8 (for 1.8) or 9.
      Throws:
      UnsupportedOperationException - if the major version cannot be determined.
      • Methods inherited from class Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait