Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse System property

Tags:

java

eclipse

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.

like image 687
hakish Avatar asked Jul 20 '10 10:07

hakish


People also ask

How can I see system properties in eclipse?

To show the Expression view: Click on Window Menu -> Show View -> Others... -> Type Expr -> Click OK. Show activity on this post. System.

What is JVM system property?

System properties contain information to configure the JVM and its environment. Some system properties are particularly relevant for JVMs in a CICS® environment. Specify JVM system properties in the JVM profile.


1 Answers

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)); 
like image 127
Andreas Dolk Avatar answered Oct 17 '22 23:10

Andreas Dolk