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 24873How to create Connection interface object because it is Interface , Interface is not instansiated?
9 18891Post New CTS JDBC Interview Questions
Tell me about a time when you were unable to complete a project on time.
How to play a movie clip?
c program which behaves like a shell(command interpreter). it has its own prompt say "NewShell$".any normal shell command is executed from your shell by starting a child process to execute a system program corrosponding to the command
What is merge command in unix?
What are the scrubbing procedures in sas?
What is difference between var x =1; and x=1;?
How R Commands are Written?
Knox and Hadoop Development Tools?
What is the provider being used to access oracle database?
how to update the tdp oracle node password?
On which tabs can I create multiple record types?
What are advantages of laravel?
What is an assistance class and how is it instantiated in webdynpro?
What is custom tag in java?
What options are available to audit login activity? : sql server security