title: ClassNotFoundException on Class.forName("com.mysql.jdbc.Driver");
body: <p>I am working on a android project with eclipse, I have a ClassNotFoundException error on:</p>
  
  <pre><code>Class.forName("com.mysql.jdbc.Driver");
  </code></pre>
  
  <p>I imported the jar file mysql-connector as is shown in the picture at the link:
  <a href="https://dl.dropboxusercontent.com/u/17360312/Untitled.png" rel="nofollow">https://dl.dropboxusercontent.com/u/17360312/Untitled.png</a></p>
  
  <p>I already put the jar file into libs folder but doesn't work.</p>
  
  <p>Here is the code of the import and package statement of the java file</p>
  
  <pre><code>package com.example.appcani;
  
  
  import java.sql.Connection;
  import java.sql.DriverManager;
  import java.sql.PreparedStatement;
  import java.sql.ResultSet;
  import com.mysql.jdbc.*;
  import prog.doc.prog.io.*;
  import prog.io.ConsoleOutputManager;
  import prog.io.FileInputManager;
  import android.support.v7.app.ActionBarActivity;
  import android.support.v7.app.ActionBar;
  import android.support.v4.app.Fragment;
  import android.content.Intent;
  import android.os.Bundle;
  import android.util.Log;
  import android.view.LayoutInflater;
  import android.view.Menu;
  import android.view.MenuItem;
  import android.view.View;
  import android.view.ViewGroup;
  import android.widget.TextView;
  import android.os.Build;
  </code></pre>