简体   繁体   中英

How can I specify java.library.path for an app built with sbt native packager?

This is on Windows, so the environment variable LD_LIBRARY_PATH is not usable.

I tried batScriptExtraDefines but it does not pickup the setting.

I tried creating the src/universal/<APP_ENV_NAME>_config.txt file, replacing \\ with the name specified in build.sbt, but it still does not pickup the config. I am not sure how to setup this APP_ENV_NAME since it is just briefly mentioned in the document.

I tried javaOptions in Universal but it does not pickup the setting.

Is there any other suggestion how to tackle this problem?

在Windows中,不是设置LD_LIBRARY_PATH环境变量,而是使用PATH环境变量查找本机库的路径。

set PATH=%PATH%;<path to your native libraries>

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