Reputation: 75
-Djava.library.path="path to a dll"
This replace the environment path variable in the current session. I want to append this path to the already existing path.
Kindly let me know how to do it. I'm calling a jar from command prompt using
java -Djava.library.path="path to a dll" -jar myjar.jar
Upvotes: 1
Views: 4838
Reputation: 354
java.library.path
is initilized with the values of the variables above on its corresponding platform.
You can test if the value is what you expect by calling java -XshowSettings:properties
Upvotes: 1
Reputation: 801
You can try -Djava.library.path="%PATH%;path to a dll"
or if it does't work
you need to get existing PATH variable value and add you path to it.
Upvotes: 1