tags:

views:

25

answers:

1

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?

A: 

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
maerics