title: How to set Netbeans 11 to include jdbc driver in the distribution jar file?
body: <p>When I run the maven project from Netbeans 11 everything works fine, but when I run it from command line with:
  <code>java -jar program.jar</code>
  I cannot connect to the mysql. I have also tried to run like I understood from similar posts on the same topic with:
  <code>java -classpath mysql-connector-java-8.0.17.jar -jar program.jar</code>
  Same problem.
  Is there a way to set up NetBeans 11 to generate the distribution jar able to use the jdbc driver?</p>