java.lang.ClassNotFoundException:oracle.jdbc.driver.OracleDr iver? I get this error at run time.I used oracle10G. I set CLASS PATH:C:\oraclexe\app\oracle\product\10.2.0 \server\jdbc\lib\ojdbc14.jar; I write JDBC PROGRAM like import java.sql.*; class Example { public static void main(String args[]) { try { Class.forName ("oracle.jdbc.driver.OracleDriver"); System.out.println("Driver Loaded"); Connection con=DriverManager.getConnection ("jdbc:oracle:thin:@localhost:1521:xe","system","salmas"); System.out.println("Driver Connected"); Statement st=con.createStatement(); ResultSet rs=st.executeQuery("select * from emp"); while(rs.next()) { System.out.println(rs.getInt(1)); System.out.println(rs.getString(2)); System.out.println(rs.getString(3)); } st.close(); con.close(); } catch(Exception e) { System.out.println(e); } finally { System.out.println("it's finally block executed"); } } }
6 22838How to create Connection interface object because it is Interface , Interface is not instansiated?
9 16250Post New CTS JDBC Interview Questions
What is the programs x86 folder?
When the get cursor command used in interactive lists?
what is JSON?
What is a process and thread?
What are the names of your technical round interviewers
What is protocol in objective-c?
How to perform the transport?
What is Distributed Training in TensorFlow ?
If you win a $10 million lottery, will you still work?
explian PIN photodiode and avalanche photodiode
What is mandatory property of app.engine?
Explain why transgenics are considered a threat to the environmental safety?
How many types of recording modes in qtp? Describe each type with an example where we use them?
How do I drag margins in word?
What are action classes in struts?