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 19986How to create Connection interface object because it is Interface , Interface is not instansiated?
9 13432Post New CTS JDBC Interview Questions
Is javascript multi-threaded or single-threaded?
Where are filters applied in sapui5?
Define formula fields?
How do you inspect element on mobile?
What are the layers of paas architecture?
What is the original name of java?
What is the difference between java and core java?
what was your most difficult decision?
hi this is sharath,from hassan ,karnataka.,., i am caled for t interv on 28th may 2009, 12 noon, at foll location.,. STATE BANK OF MYSORE STAFF TRAINING CENTRE 104/105 7TH MAIN ROAD JAYALAKSHMIPURAM MYSORE-570012. anybody who is also attendin the same interview please reply me .,.,. i am in my final yr BE EnC,MCE hassan, i wold like to know more about the interview .,., please do reply.,.,. yours friendly, sharath kumar, sharath.syss@gmail.com
What is the use of special periods?
What is increment operator in c++?
In which condition is one to many relationship used?
What is a sequence in python?
How hbase handles the write failure?
What is difference between list and linked list?