This content has been marked as final. Show 3 replies
JAVA_OPTS is not an environment variable that the java executable will recognize on it's own. Instead, various scripts which wrap the start up of java will often use an environment variable named JAVA_OPTS to configure the java executable (for example, the tomcat startup script does this).
If you are invoking the java executable directly, via a shell, and you want to use an environment variable named JAVA_OPTS when you start java, the use:
java %JAVA_OPTS% info.MemInfo
or create a script that always does the java %JAVA_OPTS% part for you, and invoke that instead of invoking java directly.
Aha, I see.
Thanks for help!
Or you can use one of