How to hide TieredCompilation warning?

I am 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 application like lein , I get this warning:

 OpenJDK Client VM warning: TieredCompilation is disabled in this release. 

This is not related to my interests, so I do not want to see it in the output of the command. How can I hide or disable it?

+6
source share
1 answer

The problem is in Leningen. Its installation by default contains the following line in the installed bash script (for example, /usr/bin/lein ):

 export LEIN_JVM_OPTS="${LEIN_JVM_OPTS-"-XX:+TieredCompilation -XX:TieredStopAtLevel=1"}" 

There are two options:

  1. change + to - ;
  2. Comment out the line completely.

Option 2 will disable the warning more fully. This is due to the fact that for certain tasks, the Leiningen executable (in ~/.lein/self-installs ) will in any case try to enable it even if -TieredCompilation .

+5
source

All Articles