title: unable to execute gradle - Illegal option: D
body: <p>I'm getting stuck to find the root cause why I'm unable to run gradle. I'm using gradle 4.9 running on my OS Centos 7. it worked perfectly before, I'm not sure why it doesn't work anymore.
  anybody please help me</p>
  
  <pre><code>&gt; gradle -version
  Illegal option: D
  Try `jar --help' for more information.
  </code></pre>
  
  <p>I also tried reinstalled gradle with gradle v5.1.2, error messages are different</p>
  
  <pre><code> &gt; gradle -version
  Illegal option: X
  Try `jar --help' for more information.
  </code></pre>
  
  <p>My Java version is 11.0.7</p>