[英]Window bat script start java program loading dll failed, but successfully started using IntelliJ idea?
static {
System.loadLibrary("tdfapi_jni");
System.loadLibrary("TDFAPI30");
}
I have placed these two dlls in the system32 directory.我已将这两个 dll 放在 system32 目录中。
i solved it, specified the path of the dll in the script.我解决了它,在脚本中指定了 dll 的路径。
"%JAVA_HOME%\bin\java.exe" %JAVA_OPT% -Djava.library.path=dll
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.