Class Sys

java.lang.Object
one.tranic.t.thread.Sys

public class Sys extends Object
  • Constructor Details

    • Sys

      public Sys()
  • Method Details

    • getCurrentJVMVersion

      public static int getCurrentJVMVersion()
      Retrieves the current JVM version as an integer.

      The version is determined by parsing the system property "java.version". If parsing fails, the feature version from Runtime.version() is used as a fallback.

      Returns:
      the current JVM version as an integer.
    • getCurrentJVMClassVersion

      public static int getCurrentJVMClassVersion()
    • hasClass

      public static boolean hasClass(String className)
      Checks whether a class with the specified fully qualified name exists in the classpath.
      Parameters:
      className - the fully qualified name of the class to check.
      Returns:
      true if the class exists; false otherwise.