code: public static boolean deployNatives(File directory) {
          final File nativesDir = new File(directory, getNativesDirectory());
          nativesDir.mkdirs();
          for (String nativeLib : getNativeLibraries()) {
              final File nativeFile = new File(nativesDir, nativeLib);
              if (!nativeFile.exists()) {
                  try {
                      Files.copy(LWJGLUtil.class.getResourceAsStream("/" + nativeLib), nativeFile.toPath());
                  } catch (IOException ex) {
                      CausticUtil.getCausticLogger().log(Level.SEVERE, "Failed to copy native library file", ex);
                      return false;
                  }
              }
          }
          final String nativesPath = nativesDir.getAbsolutePath();
          System.setProperty("org.lwjgl.librarypath", nativesPath);
          System.setProperty("net.java.games.input.librarypath", nativesPath);
          return true;
      }
docs: Attempts to deploy the LWJGL native libraries into the given directory. The sub-directory "natives/PLATFORM_NAME" (where PLATFORM_NAME is the name of the platform) will be created inside, and
  will contain the natives. The path to the natives property will be set, but the libraries not loaded. If any error is encountered while copying the natives, the operation will be aborted and
  the method will return false.
  
  @param directory The directory into which to deploy the natives. Can be null if the path to use is the working directory
  @return Whether or not the operation succeeded.