title: How to execute .Jar file with VM Arguments on AdoptOpenJDK 11 & JavaFX 11?
body: <p>I need to export a short test application in <code>JAR</code> file but when I launch the app I have an error:</p>
  
  <pre><code>Error: A JNI error has occurred, please check youe installation and try again
  
  A Java Exception has occurred
  </code></pre>
  
  <p>This is my VM Arguments :</p>
  
  <pre><code>--module-path ${PATH_TO_FX} --add-modules javafx.controls,javafx.fxml,javafx.swing
  
  --add-opens
  javafx.base/com.sun.javafx.runtime=ALL-UNNAMED
  --add-opens
  javafx.controls/com.sun.javafx.scene.control.behavior=ALL-UNNAMED
  --add-opens
  javafx.controls/com.sun.javafx.scene.control=ALL-UNNAMED
  --add-opens
  javafx.base/com.sun.javafx.binding=ALL-UNNAMED
  --add-opens
  javafx.base/com.sun.javafx.event=ALL-UNNAMED
  --add-opens
  javafx.graphics/com.sun.javafx.stage=ALL-UNNAMED
  --add-opens
  javafx.graphics/com.sun.javafx.scene=ALL-UNNAMED
  </code></pre>
  
  <p>I need all this arguments because I use :</p>
  
  <ul>
  <li><code>AdoptOpenJDK 11 Hotspot</code></li>
  <li><code>JavaFX 11</code></li>
  </ul>
  
  <p>Without this vm arguments I can't run my app. </p>
  
  <p>How I can export this VM Arguments to use my app with any PC ? </p>