title: I am working with JDBC, and I have used mysql-connector 8 to run my java program from command line
body: <p>When I am compiling the Java code, I have written the command line shows the following:</p>
  <pre><code> C:\HTML&gt;javac Jdbc.java 
      Jdbc.java:5: error: package com.mysql does not exist
      Class.forName(com.mysql.jdbc.Driver);
                             ^
      1 error
  </code></pre>
  <p>I have installed XAMPP and started the Apache, MySQL and Tomcat and they are working. I have installed MySQL Connector which is platform independent and latest. I have copied the JAR executable file to the JDK folder. I have added the jar executable file path in the edit system environment variables,
  '''  Class.forName(com.mysql.jdbc.Driver);'''</p>