I�m using eclipse and when I was using the jdbc.odbc.jdbcodbcDriver a message error said that the driver was not found.
Now I have downloaded the sql driver....and I did:
public void stabilishConection()
{
try
{
Class.forName("com.mysql.jdbc.Driver");
Connection con = DriverManager.getConnection("jdbc:myBase", "", "");
}
catch(Exception e)
{
e.printStackTrace();
}
}
The message that appears is: no suitable driver at java.sql.DriverManager.getConnection(Unknown Source)
I have set the classpath correctly....
I�m a begginer and I�m just trying to create my first program..but I�m trying this for a long time and it�s not working...
Do I have to create a dataBase file before running the program??