dapper
dapper

Reputation: 299

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 and the path variable?

Upvotes: 5

Views: 8275

Answers (1)

maerics
maerics

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

Related Questions