[英]org.usb4java.LoaderException: Native library not found in classpath error
Am an trying to use the usb4java library with a project running in Ubuntu 64bit. 试图将usb4java库与在Ubuntu 64位上运行的项目一起使用。 I am getting the following error;
我收到以下错误;
30 Jul 2015 09:46:16,225 INFO Controller : Working Directory: /opt/dock
Exception in thread "main" java.lang.ExceptionInInitializerError
at uk.co.swimtag.control.Controller.findDevice(Controller.java:755)
at uk.co.swimtag.control.Controller.startApplication(Controller.java:150)
at uk.co.swimtag.control.Controller.main(Controller.java:104)
Caused by: org.usb4java.LoaderException: Native library not found in classpath: /org/usb4java/linux-x86_64/libusb4java.so
at org.usb4java.Loader.extractLibrary(Loader.java:281)
at org.usb4java.Loader.load(Loader.java:358)
at org.usb4java.LibUsb.<clinit>(LibUsb.java:640)
... 3 more
Here are the two jars in the manifest file, and am sure the x86_64 lib is in the project; 这是清单文件中的两个jar,并确保x86_64 lib在项目中;
lib/mail.jar
lib/gson-1.6.jar
lib/usb4java-1.2.0.jar
lib/libusb4java-1.2.0-linux-x-86_64.jar
conf/
Any one had similar problems with usb4java. 任何人对usb4java都有类似的问题。 Probably something silly I have missed.
我可能错过了一些愚蠢的事情。
Thanks 谢谢
Maybe it is just a typo. 也许这只是一个错字。 But if you're sure the jar with natives is on your CLASSPATH, it may be that in your manifest file you wrote:
libusb4java-1.2.0-linux-x-86_64.jar
instead of libusb4java-1.2.0-linux-x86_64.jar
但是,如果确定带有本机的jar位于CLASSPATH上,则可能是在清单文件中编写了:
libusb4java-1.2.0-linux-x-86_64.jar
而不是libusb4java-1.2.0-linux-x86_64.jar
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.