Ubuntu 使用Java客户端


#1

在Ubuntu上测试Java客户端时出现以下错误:
the number is: StartException in thread “main” java.lang.UnsatisfiedLinkError: Unable to load library ‘DobotDll’: Native library (linux-x86-64/libDobotDll.so) not found in resource path ([file:/home/robot/eclipse-workspace/DobotDemoForJava/build/classes/, file:/home/robot/eclipse-workspace/DobotDemoForJava/jna-4.2.2.jar])
在Windows上进行相同测试时可以正确执行。我根据教程在 ~/.bashrc文件中添加:export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:DOBOT_LIB_PATH 并重启机器,但是不起作用。有没有大神遇到过这个问题,谢啦