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 24867How to create Connection interface object because it is Interface , Interface is not instansiated?
9 18885Post New CTS JDBC Interview Questions
what is plc and how many type used plc in industrial field.
Tell me what are the official packages provided by laravel?
Order the following from the part of the digestive tract nearest to the beginning to the part nearest to the end: jejunum, ileum, esophagus, duodenum?
How many admin consoles possible in a single domain?
How rejected rows are managed in datastage?
hi... guys can any one pls help me out.... I m civil engg graduate i want to come into s/w field... i have decided to do manual testing course. i know its not sufficient.. which r the other coures shall i do with this.. suggest me good atomation tool and SAP courses... thanks in advance.. i wil be thankfull to u all
How do firewall rules work?
How do I open a header in word?
Will I need juniper kit to run contrail? If I do what kit? L2/l3 switches or a router?
Why use 64bit excel?
Explain the various cycles used in ar, ap and gl.
What is left join, right join?
Define partitioning in accounting?
How can I display barcodes in sapscripts?
Does 100% precision mean that our model predicts all the values correctly?