Colton Idle
07/16/2024, 12:55 AMpickFirst. But that makes my project non-deterministic. Is there some alternative to pickFirst that can make it more deterministic? Better yet... can I have each module have it's own libusb without them clobbering each other?ephemient
07/16/2024, 1:55 AMColton Idle
07/16/2024, 6:19 AMVampire
07/16/2024, 9:47 AMephemient
07/16/2024, 3:18 PMColton Idle
07/17/2024, 1:49 PMephemient
07/17/2024, 1:51 PMColton Idle
07/17/2024, 1:53 PMColton Idle
07/17/2024, 1:54 PMVampire
07/17/2024, 3:04 PMlibusb is a native library.
In Java you can only load a given native library once and from one class loader.
If you for example have an application server where you deploy two web applications that try to load the same native library, it will fail for the second one with something like java.lang.UnsatisfiedLinkError: Native Library ... already loaded in another classloader, even if it is the same native library file, let alone different versions.Colton Idle
07/17/2024, 3:06 PMColton Idle
07/17/2024, 3:07 PMVampire
07/17/2024, 3:12 PMephemient
07/17/2024, 3:14 PMephemient
07/17/2024, 3:15 PMVampire
07/17/2024, 3:23 PMephemient
07/17/2024, 3:27 PMColton Idle
07/17/2024, 4:21 PMpickFirst but I don't know what version of libusb each library uses. Is there a way for me to see what version of libusb each one uses if I have access to the .so files?Vampire
07/17/2024, 4:24 PMColton Idle
07/17/2024, 4:45 PMephemient
07/17/2024, 4:48 PMlibusb_get_version function https://libusb.sourceforge.io/api-1.0/group__libusb__misc.html#ga61d07b01404fdea080cd16c1ed8be93d so you could load each library (in separately local test processes) to see info of each