title: I'm getting error in com.mysql.jdbc.Driver when catch in ClassNotFoundException
body: <p>this is the code.
  and it work to another program.<br>
  the error in  String driver=com.mysql.jdbc.Driver.
  the program cannot find the class of that.
  and i have change myy locashost port to 10000.</p>
  
  <pre><code>String url="jdbc:mysql://localhost:3306/";
  String dbName="itdashboard";
  String driver="com.mysql.jdbc.Driver";
  String userName="root";
  String password="";
  
  //code in the below was the method
  
  public boolean createMenu(String nama, String icon){
          String password="";
          String userName="root";
          Connection con=null;
          ResultSet rs=null;
          AksesJdbc db=new AksesJdbc("itdashboard","", "");
          try{
              String insert="insert into mainmenu (nama,icon) values ("
                      +"'"+nama+"','"+icon+"');";
              db.connect();
              db.executeUpdate(insert);
              db.disconnect();
              return true;
          }
  
          catch(SQLException e){
              e.printStackTrace();
              return false;
          } catch (ClassNotFoundException ex) {
              Logger.getLogger(dataDB.class.getName()).log(Level.SEVERE, null, ex);
  
              return false;
          }
      }
  </code></pre>