code: private void copyFile(String path, File dest) {
          String resourceName= "native/" + path;
          try
          {
              LOG.debug("Copy from resource <"+resourceName+"> to target <"+dest.getAbsolutePath()+">");
              if (copy(getClass().getResourceAsStream(resourceName), dest.getAbsolutePath()))
              {
                  if (dest.exists())
                  {
                      LOG.debug("Target <"+dest.getAbsolutePath()+"> exists");
                  }
                  else
                  {
                      LOG.fatal("Target <"+dest.getAbsolutePath()+"> does not exist");
                  }
              }
              else
              {
                  LOG.fatal("Copy resource to target <"+dest.getAbsolutePath()+"> failed");
              }
          }
          catch (NullPointerException ex)
          {
              LOG.error("Could not find ffmpeg executable for "+resourceName+" is the correct platform jar included?");
              throw ex;
          }
      }
docs: Copies a file bundled in the package to the supplied destination.
  
  @param path The name of the bundled file.
  @param dest The destination.
  @throws RuntimeException If an unexpected error occurs.