Title: Loading /org/usb4java/win32-x86-64/libusb4java.dll in Eclipse · Issue #88 · usb4java/usb4java · GitHub
Open Graph Title: Loading /org/usb4java/win32-x86-64/libusb4java.dll in Eclipse · Issue #88 · usb4java/usb4java
X Title: Loading /org/usb4java/win32-x86-64/libusb4java.dll in Eclipse · Issue #88 · usb4java/usb4java
Description: On the usb4java website under Native Libs it states: "usb4java only extracts the files into a temporary directory when they are inside a JAR file." but what exactly does this mean? Does it mean that if I generate my own libusb4java-1.3.0...
Open Graph Description: On the usb4java website under Native Libs it states: "usb4java only extracts the files into a temporary directory when they are inside a JAR file." but what exactly does this mean? Does it mean tha...
X Description: On the usb4java website under Native Libs it states: "usb4java only extracts the files into a temporary directory when they are inside a JAR file." but what exactly does this mean? Does i...
Opengraph URL: https://github.com/usb4java/usb4java/issues/88
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Loading /org/usb4java/win32-x86-64/libusb4java.dll in Eclipse","articleBody":"On the usb4java website under Native Libs it states:\r\n\r\n\"usb4java only extracts the files into a temporary directory when they are inside a JAR file.\"\r\n\r\nbut what exactly does this mean?\r\n\r\nDoes it mean that if I generate my own libusb4java-1.3.0-win32-x86-64.jar and don't put another inside it then useb4java will not load the embedded dll?\r\n\r\nI've not had a problem using the libusb4java wrappers with Java8 but with J21 when using modules it is problematic since usb4java is non-modular. I have an app that runs fine in cmdline but when run in Eclipse fails with the stracktrace:\r\n\r\nException in thread \"main\" java.lang.ExceptionInInitializerError\r\n...\r\nCaused by: org.usb4java.LoaderException: Native library not found in classpath: /org/usb4java/win32-x86-64/libusb4java.dll\r\n\tat usb4java@1.3.0/org.usb4java.Loader.extractLibrary(Loader.java:246)\r\n\tat usb4java@1.3.0/org.usb4java.Loader.load(Loader.java:323)\r\n\tat usb4java@1.3.0/org.usb4java.LibUsb.\u003cclinit\u003e(LibUsb.java:690)\r\n\t... 6 more\r\n\r\nI can't see how to resolve this if I want to use the native libs directly because we have to call LibUsb.init() - the library demands it. But in doing so it ends up in Loader.load() and then Loader.extractLibrary() where the LoaderException is thrown because it can't resolve the path.\r\n\r\nSo, how does one realise this statement without a switch for bypassing this attempt to load a native?:\r\n\r\n\"usb4java only extracts the files into a temporary directory when they are inside a JAR file.\"\r\n","author":{"url":"https://github.com/gmseed","@type":"Person","name":"gmseed"},"datePublished":"2023-10-11T15:51:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/88/usb4java/issues/88"}
| 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:bfa437fb-4f1b-3186-9b49-df4987ee5a3e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CE9C:24A271:A83B1E:DBDEF2:69762DDC |
| html-safe-nonce | d689593c5f9fe8168f237b2761b30d1f46d34a62239f0b38fedcea7ccb3bd94b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTlDOjI0QTI3MTpBODNCMUU6REJERUYyOjY5NzYyRERDIiwidmlzaXRvcl9pZCI6IjgyOTYxNjk4MjE1NDQyNjMxMzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 919598c0292d68fe04f630186c29145fc6dd476e01a15ad503247c3a11db8e93 |
| hovercard-subject-tag | issue:1938145718 |
| 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/usb4java/usb4java/88/issue_layout |
| twitter:image | https://opengraph.githubassets.com/58104dce3255f828e20aeb893b4814670472c02838eeb3f1bda7c7d31846132d/usb4java/usb4java/issues/88 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/58104dce3255f828e20aeb893b4814670472c02838eeb3f1bda7c7d31846132d/usb4java/usb4java/issues/88 |
| og:image:alt | On the usb4java website under Native Libs it states: "usb4java only extracts the files into a temporary directory when they are inside a JAR file." but what exactly does this mean? Does it mean tha... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gmseed |
| hostname | github.com |
| expected-hostname | github.com |
| None | c6814b4cc7afd45cd6e64525d0cff0e76dd802f315a5b0e55a7abda1d1d070d0 |
| turbo-cache-control | no-preview |
| go-import | github.com/usb4java/usb4java git https://github.com/usb4java/usb4java.git |
| octolytics-dimension-user_id | 5460495 |
| octolytics-dimension-user_login | usb4java |
| octolytics-dimension-repository_id | 1528861 |
| octolytics-dimension-repository_nwo | usb4java/usb4java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1528861 |
| octolytics-dimension-repository_network_root_nwo | usb4java/usb4java |
| 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 | 4ea235bfed58ef16c8a5642b3ac64b74f10c9f52 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width