I'm using Linux Mint and OpenJDK. java -version shows this:
java version "1.7.0_79"
OpenJDK Runtime Environment (IcedTea 2.5.6) (7u79-2.5.6-0ubuntu1.14.04.1)
OpenJDK Client VM (build 24.79-b02, mixed mode, sharing)
Whenever I run a Java-based app like lein, I get this warning:
OpenJDK Client VM warning: TieredCompilation is disabled in this release.
It's irrelevant to my interests, so I'd rather not see it in the command output. How can I hide or disable it?
The problem is in Leiningen. Its default installation contains the following line in the bash script it installs (eg. /usr/bin/lein):
export LEIN_JVM_OPTS="${LEIN_JVM_OPTS-"-XX:+TieredCompilation -XX:TieredStopAtLevel=1"}"
There are two options:
+ to -;Option 2 will disable the warning more comprehensively. This is because for certain tasks the Leiningen executable (in ~/.lein/self-installs) will try to enable it anyway even in presence of -TieredCompilation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With