Friday, August 13, 2021

Java: set command line parameters via environment variable


Instead of:

> java -Xmx256M ...

 

We can:

> set JAVA_TOOL_OPTIONS=-Xmx256M

> java ...


JAVA_TOOL_OPTIONS may not work with jvm.dll. For that we can try _JAVA_OPTIONS. e.g.

> set _JAVA_OPTIONS=-Xmx256M

No comments:

 
Get This <