NO suitable driver:oracle n java
I am using jdk1.6 n oracle 10.2.0.1.0
when i run this code ... OracleConnection.java
import java.sql.*;
public class OracleConnection
{
Connection con;
public OracleConnection()
{
try
{
Class.forName("oracle.jdbc.OracleDriver");
String user = "system";
String pwd = "simha";
con = DriverManager.getConnection("jdbc:orcale:thin:@localhost:1521:vinay",user,pwd);
}catch(Exception e){e.printStackTrace();}
}
public static void main(String args[])
{
new OracleConnection();
}
}
getting error as
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(DriverManager.java:545)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at OracleConnection.<init>(OracleConnection.java:13)
at OracleConnection.main(OracleConnection.java:19)
i had specified the ojdbc14.jar in the classpath also....plz give me the reasons why i am getting this error n what is the solution?

