Reputation: 299
My native library resides at C:\Mywork
.
How do I set the native library path towards C:\Mywork
using both command prompt line and the path variable?
Upvotes: 5
Views: 8275
Reputation: 156364
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
Upvotes: 5