import java.sql.*;
public class Jdbcdemo {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection c=DriverManager.getConnection("jdbc.oracle:thin:@hp-hp:1521:xe","system", "ashu41228");
if(c!=null)
{
System.out.println("DataBase is Created");
}
} catch (ClassNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
java.sql.SQLException:在 java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) 处找不到适用于 jdbc.oracle:thin:@hp-hp:1521:xe 的驱动程序Jdbcdemo.main(Jdbcdemo.java:12)
上面的异常即将到来我不知道如何解决这个问题。请帮助