|
|
@ -85,16 +85,14 @@ public class Natives { |
|
|
|
out.close(); |
|
|
|
out.close(); |
|
|
|
} catch (FileNotFoundException ex) { |
|
|
|
} catch (FileNotFoundException ex) { |
|
|
|
if (ex.getMessage().contains("used by another process")) { |
|
|
|
if (ex.getMessage().contains("used by another process")) { |
|
|
|
if (load) { |
|
|
|
|
|
|
|
System.load(targetFile.getAbsolutePath()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
throw ex; |
|
|
|
throw ex; |
|
|
|
} |
|
|
|
} finally { |
|
|
|
if (load) { |
|
|
|
if (load) { |
|
|
|
System.load(targetFile.getAbsolutePath()); |
|
|
|
System.load(targetFile.getAbsolutePath()); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
logger.log(Level.FINE, "Copied {0} to {1}", new Object[]{fullname, targetFile}); |
|
|
|
logger.log(Level.FINE, "Copied {0} to {1}", new Object[]{fullname, targetFile}); |
|
|
|
} |
|
|
|
} |
|
|
|