tags:

views:

27

answers:

1

hi, I need to set the value of a system property java.library.path to c:\somepath. i know that i need to add this in the vm args section. Could some please provide the actual syntax.

A: 

The argument is

-Djava.library.path=c:/somepath

To test if it's correct:

String key = "java.library.path";
System.out.printf("%s=%s%n", key, System.getProperty(key)); 
Andreas_D
use this after `-vmargs`, e.g. `eclipse -vmargs -Djava.library.path=...`
Andreas
I guess he wanted to add the parameter to a runtime configuration in eclipse itself.
Andreas_D
yes i wanted to add the parameter at runtime config in eclipse, thanks guys for the response
hakish