简体   繁体   中英

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.

i solved it, specified the path of the dll in the script.

"%JAVA_HOME%\bin\java.exe" %JAVA_OPT% -Djava.library.path=dll

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM