title: Driver not found in Netbeans IDE
body: <p>I have read all possible answer <a href="https://stackoverflow.com/questions/4533317/netbeans-with-glassfish-have-no-suitable-driver-found-for-mysqljdbc">here</a> and <a href="https://stackoverflow.com/questions/9622105/java-sql-sqlexception-no-suitable-driver-found-for-netbeans">here</a> and <a href="https://stackoverflow.com/questions/2839321/java-connectivity-with-mysql/2840358#2840358">here</a>. I believe I have a problem somewhere else and it may useful to others also.</p>
  
  <p>I have a Java Servlet and it was executing well in eclipse IDE but later I shifted the project to Netbeans. I imported MySQL JDBC driver in Libraries and using the code below for connection</p>
  
  <pre><code>connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/bolsms", "root", "@#$5869@#$");
  </code></pre>
  
  <p>but I am getting this error <strong>No suitable driver found for jdbc:mysql://localhost:3306/bolsms</strong></p>
  
  <p>I looking for answer for two days and community will appreciate that I am not repeating the question. </p>
  
  <p><strong>Edit 1:</strong></p>
  
  <p><img src="https://i.stack.imgur.com/zPMUL.jpg" alt="MySQL JDBC driver in Libraries Folder"></p>