Class RuntimeLoader

java.lang.Object
org.wpilib.util.runtime.RuntimeLoader

public final class RuntimeLoader extends Object
Loads a native library at runtime.
  • Method Details

    • getPlatformName

      public static String getPlatformName()
      Returns platform name.
      Returns:
      The current platform name.
      Throws:
      IllegalStateException - Thrown if the operating system is unknown.
    • loadLibrary

      public static void loadLibrary(String libraryName) throws IOException
      Loads a native library.
      Parameters:
      libraryName - the name of the library to load.
      Throws:
      IOException - if the library fails to load