Tag Archives: jvm options

Java VM Options

Ignoring VM options costs a lot.

Here is an example:

In NetBeans (Java IDE), an option in Project Properties set for Run like this -Dendian=big will return System.getProperty(“endian”) as big.

However, when, from terminal the application is run by java –jar x.jar (ignoring -Dendian=big), the application will return null when System.getProperty(“endian”) is being called, and so forthcoming NullPointerException etc.

VM Option can be set like below:


E.g. “endian” property can be set by -Dendian=big

%d bloggers like this: