title: How to run java11 and jfx11 application on jre1.8
body: <p>I am a computer student and I had during my internship in a company, develop a small java software using JavaFX, maven, and apache.poi.</p>
  
  <p>Info: The application works on Intellij and builds perfectly, my problem concerns the <code>*.jar</code> that I generate once the project is finished.</p>
  
  <p>I first used JDK 14 and JFX14, however at the time of the execution (java –jar xx.jar) I had an error saying that I was compiling the program in JAVA 58 (JAVA 14) and that I was using JRE 52 (JAVA 8).</p>
  
  <p>So I modified the project to compile with JDK 11 and JFX 11, and I now have the same error telling me that I am compiling the program in JAVA 55 (JAVA 11) and that I was using JRE 52 (JAVA 8).</p>
  
  <p>The error comes from the fact that my PC uses jre1.8.0_251 by default.</p>
  
  <p>So I tried to launch the program in this way "path_to_jdk11 \ bin \ java.exe" -jar xxx.jar and it works.</p>
  
  <p>So that's my problem:</p>
  
  <p>The majority of users use the version of JAVA offered on the Oracle site, i.e. jre1.8.0_251 which is the latest version available. Outside my program requires Java 11, which is not deploying on corporate PCs, I imagine.
  I tried to port my project to java 8 but I have errors with Maven and the module.info.java.</p>
  
  <p>Do you have a tip for deploying the <code>*.jar</code> or deploying it in <code>.exe</code> so that it can run with a user who has jre1.8.0_251?</p>
  
  <p>Respectfully</p>