This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I need some help in connecting to my Oracle database. This db server is on a machine in my network and my java class runs on my laptop(WinNT) using JDK1.3 and latest JDBC drivers. I have set my classpath to include classes111.zip and classes12.zip and imported oracle.jdbc.driver.* in my class code. The code compiles fine but when executed thru DOS prompt I get the following error:-
Exception in thread "main" java.sql.SQLException: No suitable driver at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at Test.main(Test.java:15) <code snippet> String url = "jdbc.oracle.thin:@184.108.40.206:1521:aaaa"; String driver = "oracle.jdbc.driver.OracleDriver"; Class.forName(driver); Connection conn= DriverManager.getConnection(url, "uid", "password"); </code snippet>
Any help would be highly appreciated. Uday PS: Keep in mind, I am brand new to Java. [ March 28, 2002: Message edited by: Uday Kumar ]