_JAVA_OPTIONS – For my info
Today I found some interesting environment variable: _JAVA_OPTIONS.
The behavior is like this, here I will show some example.
$export _JAVA_OPTIONS=”-Djava.test=123456”
guess what will be happening?
Yes, you are right. If you call java ** later, it will automatically use the parameters in the double quotes. Hence in this example, it will set the System property “java.test” as the value “123456”.
there’s only one issue: if you set this variable, every time you run java **, the command line will show “Pick up _JAVA_0PTIONS: *****”