Class JKMachineInfo

java.lang.Object
com.jk.core.util.JKMachineInfo

public final class JKMachineInfo extends Object
This class provides utility methods to retrieve information about the machine's hardware and system details.
Version:
1.0
Author:
Dr. Jalal H. Kiswani
  • Method Details

    • getHardDiskSerialNumber

      public static String getHardDiskSerialNumber() throws IOException
      This method retrieves the serial number of the hard disk.
      Returns:
      the serial number of the hard disk.
      Throws:
      IOException - if an I/O error occurs while retrieving the serial number.
    • getMacAddress

      public static String getMacAddress()
      This method retrieves the MAC addresses of network interfaces.
      Returns:
      the MAC addresses of network interfaces.
    • getSystemInfo

      public static Properties getSystemInfo()
      This method retrieves system information properties.
      Returns:
      the Properties object containing system information.
    • main

      public static void main(String[] args) throws Exception
      This main method demonstrates the functionality of the class.
      Parameters:
      args - the command-line arguments.
      Throws:
      Exception - if an exception occurs during execution.