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 25133How to create Connection interface object because it is Interface , Interface is not instansiated?
9 19249Post New CTS JDBC Interview Questions
What is windows nt stand for?
How do I move the log files?
What are its advantages of pom?
What are different types of comments used in jsp?
What is connection pooling and how to enable and disable connection pooling?
What flag means?
How can duplicate form submission be handled in struts 2?
What are step loops? How do you program page down page up in step loops?
How do you differentiate between primary open-angle glaucoma and angle-closure glaucoma based on clinical findings?
What is ms powerpoint design?
Explain about the tables exists in a data dictionary and what are they? : abap data dictionary
hi I am in training of functional module, i am unable to understand what exactly use of IDOC,BAPI,DIM and BIM. As LSMW and BDC methods are used for data conversion from legacy to sap. Might be it is silly question. please explain me
Explain about your project and its relation to the current job position you are applying to?
Mention what are the maximum number of dimensions in info cubes?
How do bending tubing provide better measurement than using tubing fittings such as elbows?