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 25124How to create Connection interface object because it is Interface , Interface is not instansiated?
9 19232Post New CTS JDBC Interview Questions
What is the name of a graffian follicle after it releases an egg, turns into a yellow body, and begins to secrete progesterone?
any from electronics proffesional i want to generate 12v automotive voltage regulator in the latest technology plz provide me some technical notes on it.
How to use far pointers?
What is string data type in sql?
How to calculate Gratuity & when it's applicable to employee after three years or Five years?...
What are the components of ms word window?
Define web service protocol stack?
What is prototype in c++ with example?
What is a pointcut in spring?
Why can mitochondria be considered the power plants of the aerobic cells?
Explain why a blockchain needs tokens to operate?
Why trigger is used in sql?
You are required to show the effect of each of the following changes on profit and Break-Even-Volume from the information given below: Sales 50,000 units Rs. 5.00 per unit Variable cost Rs. 3.00 per unit Fixed cost Rs. 70,000 Changes: (i) Price changes by 20%. (ii) Volume decreases to 40,000 units. (iii) Variable cost increases to Rs 3.50 per unit. (iv) Fixed cost decreases by 10%.
Explain InputSplit in Hadoop MapReduce?
What is a domain authority?