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 23528How to create Connection interface object because it is Interface , Interface is not instansiated?
9 17106Post New CTS JDBC Interview Questions
Can a user access dom in a node.js?
some basic standard questions on transformer.
Implement two stacks using a single array.
how can leve transmetter calibate in feild .and also put cv and flow plz .....
how IDP Qury perform by the B subs MSC for MTC call. If subscriber is in roaming in other state? plz explain briefly
What is 'Sashimi' and 'Impediments'?
What is annotation in nlp?
How many cores should a server have?
How to Force a SunOS Machine Not to Be a Router?
What is weblogic?
List .conf files by priority?
What is the purpose of my sql?
How can arrays be tied?
What is oceanographers?
What does the immutable bit do to a file?