Title: extractRegistered prompts java.io.FileNotFoundException for extracted dependency · Issue #29 · scijava/native-lib-loader · GitHub
Open Graph Title: extractRegistered prompts java.io.FileNotFoundException for extracted dependency · Issue #29 · scijava/native-lib-loader
X Title: extractRegistered prompts java.io.FileNotFoundException for extracted dependency · Issue #29 · scijava/native-lib-loader
Description: For my native library, I need to extract some native dependencies and I wanted to use NativeLoader.extractRegistered() for that. I put all of them into a jar and listed the sonames in META-INF/lib/linux_64/. From the log output below I'm...
Open Graph Description: For my native library, I need to extract some native dependencies and I wanted to use NativeLoader.extractRegistered() for that. I put all of them into a jar and listed the sonames in META-INF/lib/...
X Description: For my native library, I need to extract some native dependencies and I wanted to use NativeLoader.extractRegistered() for that. I put all of them into a jar and listed the sonames in META-INF/lib/...
Opengraph URL: https://github.com/scijava/native-lib-loader/issues/29
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"extractRegistered prompts java.io.FileNotFoundException for extracted dependency","articleBody":"For my native library, I need to extract some native dependencies and I wanted to use `NativeLoader.extractRegistered()` for that. I put all of them into a jar and listed the sonames in `META-INF/lib/linux_64/`.\r\nFrom the log output below I'm guessing that the first dependency `libifcoremt.so.5` is successfully extracted to the temporary dir but then something goes wrong. Is the temporary directory deleted too early?\r\n\r\n## content of META-INF/lib/linux_64/AUTOEXTRACT.LIST\r\n\r\n linux_64/libifcoremt.so.5\r\n linux_64/libifport.so.5\r\n linux_64/libimf.so\r\n linux_64/libintlc.so.5\r\n [etc.]\r\n\r\n## initialization code\r\n\r\n static { \r\n try {\r\n NativeLoader.extractRegistered();\r\n NativeLibraryUtil.loadNativeLibrary(MyLibJNI.class, \"mylib\");\r\n } catch (IOException e) {\r\n System.err.println(\"NativeLoader failed to load library. \\n\" + e);\r\n System.exit(1);\r\n }\r\n }\r\n\r\n## Log output\r\n\r\n 5028 [main] DEBUG org.scijava.nativelib.BaseJniExtractor - Extracting libraries registered in classloader sun.misc.Launcher$AppClassLoader@6d6f6e28\r\n 5030 [main] DEBUG org.scijava.nativelib.BaseJniExtractor - Extracting libraries listed in file:/home/me/src/trunk/native-intel-runtime/target/classes/META-INF/lib/linux_64/AUTOEXTRACT.LIST\r\n 5032 [main] DEBUG org.scijava.nativelib.BaseJniExtractor - Extracting 'file:/home/me/src/trunk/native-intel-runtime/target/classes/natives/linux_64/libifcoremt.so.5' to '/tmp/nativelib-loader_1434383826253268890/linux_64/libifcoremt.so.5'\r\n NativeLoader failed to load library. \r\n java.io.FileNotFoundException: /tmp/nativelib-loader_1434383826253268890/linux_64/libifcoremt.so.5 (No such file or directory)","author":{"url":"https://github.com/cafhach","@type":"Person","name":"cafhach"},"datePublished":"2019-02-04T15:17:15.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/29/native-lib-loader/issues/29"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:05b5b75d-2673-4ff7-8449-a53c6667ecdf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8FD6:D7A08:28A1EF0:392174D:6969222A |
| html-safe-nonce | 8a09fd182d2852811fb573d84784feb96471d6502309c9574a066769edb8c1e5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RkQ2OkQ3QTA4OjI4QTFFRjA6MzkyMTc0RDo2OTY5MjIyQSIsInZpc2l0b3JfaWQiOiI4ODQzNDYwMDg2NzE2OTEzMDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 98f7212f7a0f2d384e1e41fb96da8576a46f278159ae0a997e106b3e90261f34 |
| hovercard-subject-tag | issue:406376592 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/scijava/native-lib-loader/29/issue_layout |
| twitter:image | https://opengraph.githubassets.com/94a38317b80c11ec137c2ea0e407ce829bbae557f5293cc10f49a9f6e1d624dd/scijava/native-lib-loader/issues/29 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/94a38317b80c11ec137c2ea0e407ce829bbae557f5293cc10f49a9f6e1d624dd/scijava/native-lib-loader/issues/29 |
| og:image:alt | For my native library, I need to extract some native dependencies and I wanted to use NativeLoader.extractRegistered() for that. I put all of them into a jar and listed the sonames in META-INF/lib/... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cafhach |
| hostname | github.com |
| expected-hostname | github.com |
| None | 54182691a21263b584d2e600b758e081b0ff1d10ffc0d2eefa51cf754b43b51d |
| turbo-cache-control | no-preview |
| go-import | github.com/scijava/native-lib-loader git https://github.com/scijava/native-lib-loader.git |
| octolytics-dimension-user_id | 1262770 |
| octolytics-dimension-user_login | scijava |
| octolytics-dimension-repository_id | 3805074 |
| octolytics-dimension-repository_nwo | scijava/native-lib-loader |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3805074 |
| octolytics-dimension-repository_network_root_nwo | scijava/native-lib-loader |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d69ac0477df0f87da03b8b06cebd187012d7a930 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width