Setting the path to the source library

My native library is in C:\Mywork.

How to set the native library path to C:\Myworkusing both the command line and the path variable?

+3
source share
1 answer

In the PATH variable:

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

And in java command line:

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

Source: https://habr.com/ru/post/1758723/


All Articles