Setting native library path
My native library resides at C:\Mywork
.
How do I set the native library path towards C:\Mywork
using both command prompt line an开发者_如何学编程d the path variable?
In the PATH variable as follows:
C:\> set PATH=%PATH%;C:\Mywork
And on the java command-line like so:
C:\> java -Djava.library.path=C:\Mywork MyMainClass
精彩评论