title: Jpackage doesn't work perfectly with JDBC dependency
body: <p>I've made a simple program that uses JavaFX and JDBC as dependencies, I packaged it to an installable file using jpackage, with no difficulties, but when I try to launch my program it gives me the following error :</p>
  <pre><code>&quot;Missing JavaFX application class com.example.mvnwithjdbcnotused.HelloApplication&quot;
  </code></pre>
  <p>PS: the program is runing fine in the IDE, also with CMD (runing the &quot;.jar&quot; file not the installed file), it's just the resulted .exe file that gives that error.
  i tried to make the same program but without calling or using mysql database, and it worked fine, so i assumed the problem is related to the dependency (which is MySQL JDBC) or the way i used the Jpackage tool</p>
  <p>Steps i followed to create the installable .exe</p>
  <p>1-i packaged my files using Intellij's artifact (including all the dependencies used)</p>
  <p>2-i used jpackage tool as follow :</p>
  <pre><code>jpackage --name &quot;name of the file&quot; --description &quot;description&quot; --vendor &quot;vendor&quot; --app-version 1.0 --input &quot;the file that has the .jar created by the first step&quot; --main-jar &quot;name of the jar&quot;--dest &quot;destination file &quot; --module-path &quot;path to javafx jmods files &quot; --add-modules javafx.controls,javafx.fxml --win-console
  </code></pre>
  <p>3-install the file</p>
  <p>4-run the program</p>
  <p>I'm really confused if the issue is from the steps i followed or from the dependency or the tool</p>
  <p>the last think i want to mention is my project is modular, but MySQL JDBC is not.</p>