String libname = path + System.getProperty("file.separator") + lname; try
String sep = System.getProperty("file.separator"); String libname = path + sep + lname; String releaselibname = path + sep + "Release" + sep + lname; String debuglibname = path + sep + "Debug" + sep + lname; if ( vtkTesting2.LoadLib(library) != 1 && vtkTesting2.LoadLib(libname) != 1 && vtkTesting2.LoadLib(releaselibname) != 1 && vtkTesting2.LoadLib(debuglibname) != 1 )
  private static void LoadLibrary(String path, String library)    {    String lname = System.mapLibraryName(library);    String libname = path + System.getProperty("file.separator") +      lname;    try      {      System.out.println("Try to load: " + libname);      Runtime.getRuntime().load(libname);      }    catch (UnsatisfiedLinkError e)      {      System.out.println("Failed to load: " + libname + " attempting: " + library);      System.loadLibrary(library);      }    }