Package oshi.demo

Class DetectVM

java.lang.Object
oshi.demo.DetectVM

public class DetectVM extends Object
Uses OSHI to attempt to identify whether the user is on a Virtual Machine
  • Constructor Details

    • DetectVM

      public DetectVM()
  • Method Details

    • main

      public static void main(String[] args)
      The main method, executing the identifyVM() method.
      Parameters:
      args - Arguments, ignored.
    • identifyVM

      public static String identifyVM()
      The function attempts to identify which Virtual Machine (VM) based on common VM signatures in MAC address and computer model.
      Returns:
      A string indicating the machine's virtualization info if it can be determined, or an emptry string otherwise.