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 22945How to create Connection interface object because it is Interface , Interface is not instansiated?
9 16367Post New CTS JDBC Interview Questions
What does question mark mean in react?
Explain why is a vacuum breaker used on shell and tube heat exchangers that are utilizing steam as the heating utility?
Tell me what is the difference between list and tuple?
How can you temporarily turn off jenkins security if the administrative users have locked themselves out of the admin console?
Explain how Does Run time data (Parameterization) is handled in QTP?
On what basis name node distribute blocks across the data nodes?
Nephrology is a rapidly evolving field. How do you handle challenges related to staying current with advancements and adjusting your treatment strategies accordingly?
please give the sbi bank clerk exam paper model in last five years?
Name some of google adword ad extensions?
How many types of data classes are there in sap abap? : abap data dictionary
How do I open a file in notepad?
What is sql prepared statement?
How do you decide which integer type to use?
sql related question (outer join, left, right etc) array vs hashtable CRL sqldatareader vs dataset what is WPF, WCF, compare to WinForms Webservices Asp.net MVC vs WebForms?
How do I check my disk space?