|
Hi frns,
I am stuck with a problem.I could'nt connect to oracle.
I am using oracle8i fully installed.
I have included classes12.rar file to classpath.
do I need to install any drivers. or need to set any other path
plz let me know
feel free to contact me at vsphanindra@yahoo.com
"the error I am getting is "
package oracle.jdbc does not exist
Class.forName(new oracle.jdbc.OracleDriver());
and the code I used to connect to database is
// import Oracle.*;
import java.sql.*;
//import package oracle.jdbc ;
public class Data {
public static void main(String[] args) {
Class.forName(new oracle.jdbc.OracleDriver());
//Connection con =
//DriverManager.getConnection"jdbc:oracle:thin:@hostname:1526:orcl","scott","ti ger");
}
}
thnx in advance
phanindra.
|
|
|
|
|
|
|
|
|
|