title: How to run (exe) java-8 application in java-11
body: <p>I have made a java application using jdk 8 and then made an executable file from the jar. </p>
  
  <p>Then I updated my system to java 11, and deleted all older java versions from my system, and when I run this app from exe file it can't run and takes me to web browser and asks me to download java 8. But if I run the jar using <code>java -jar app.jar</code> it runs normally on java 11.</p>
  
  <p>I've used launch4j to make an exe out of jar, and there is no possibility to pick java 11 as the newest version. </p>
  
  <p>So how can I make this exe run on java 11?</p>