title: invalid flag: -jar after upgrading java package to 1.8.0_211
body: <p>We upgraded java package to 1.8.0_211. After upgrading, I was restarting my java services, which were running before , to reflect the upgraded changes.</p>
  
  <p>But while running the <code>.jar</code> file, I am getting following error</p>
  
  <pre><code>javac: invalid flag: -jar
  Usage: javac &lt;options&gt; &lt;source files&gt;
  use -help for a list of possible options
  </code></pre>
  
  <p>Below is the command I am using to run it.</p>
  
  <pre><code> nohup java -jar master-f41ba7c-true_26-04-2019_17.55.08.jar --spring.config.location=file:properties/application.properties &amp;
  </code></pre>
  
  <p><strong>Edit 1</strong>
  when I checked the version of java on my newly upgraded java server it shows with javac</p>
  
  <pre><code>$ java -version
  
  javac version 1.8.0_211
  </code></pre>
  
  <p>But when I use the same command to check the version of java on my old java server. It shows like this : </p>
  
  <pre><code>$ java -version
  java version "1.8.0_151"
  </code></pre>
  
  <p>In the new it prints <code>javac</code> instead of java </p>
  
  <p>How can I make my jar run as before.</p>