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

Leave a Comment

NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: