Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #1029757 // addToNativeLibraryPath

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (2556L) is out of date.

svoid addToNativeLibraryPath(File dir) {
  if (dir == null) ret;
  S libraryPath = System.getProperty("java.library.path");
  if (contains(splitAt(libraryPath, File.pathSeparator), f2s(dir))) ret;
  libraryPath += File.pathSeparator + f2s(dir);
  print("New java.library.path: " + libraryPath);
  System.setProperty("java.library.path", libraryPath);
  
  javaLibraryPathHack();
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1029757
Snippet name: addToNativeLibraryPath
Eternal ID of this version: #1029757/5
Text MD5: cb9b2f37c2a3c00d8e7935651502c540
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-08 17:44:01
Source code size: 391 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 212 / 312
Version history: 4 change(s)
Referenced in: [show references]