简体   繁体   English

设置本机库路径

[英]Setting native library path

My native library resides at C:\\Mywork . 我的本机库位于C:\\Mywork

How do I set the native library path towards C:\\Mywork using both command prompt line and the path variable? 如何使用命令行提示符和path变量将本地库路径设置为C:\\Mywork

In the PATH variable as follows: 在PATH变量中如下所示:

C:\> set PATH=%PATH%;C:\Mywork

And on the java command-line like so: 在Java命令行上如下所示:

C:\> java -Djava.library.path=C:\Mywork MyMainClass

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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