How to add native library to “java.library.path” with Eclipse launch (instead of overriding it)

Had forgotten this issue… I was actually asking with Eclipse, sorry for not stating that originally.
And the answer seems to be too simple (at least with 3.5; probably with older versions also):

Java run configuration’s Arguments : VM arguments:

-Djava.library.path="${workspace_loc:project}\lib;${env_var:PATH}"

Must not forget the quotation marks, otherwise there are problems with spaces in PATH.

Leave a Comment