java调用本地方法的时候报错 could not find the main class:xx.program will exit

如图所示,当在java调用本地方法的时候报错

我的解决办法是把dll文件放到System.out.println(System.getProperty("java.library.path"));打印出来的任一个路径中即可解决问题

原文地址:https://www.cnblogs.com/langtianya/p/3723066.html