Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Other Java > Java Databases
| Search | Today's Posts | Mark Forums Read
Java Databases Discussion specific to working with Java Databases. For other Java topics, please see related Java forums. For database discussions not specific to Java, please see the Database category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old April 6th, 2005, 06:09 AM
Registered User
 
Join Date: Apr 2005
Location: Chennai, TamilNadu, India.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to swaminathanb
Default Connection to Oracle via JDBC

Hi
Im developing a Knowledge Base as my final sem MCA project..I'm using Oracle 9i as database..the error message what i encounter is Database driver not found..
Java.lang.ClassNotFoundException: Oracle.jdbc.driver.OracleDriver

The connection Code is,

 Class.forName("oracle.jdbc.driver.OracleDriver");
 dbcon=DriverManager.getConnection
("jdbc:oracle:thin:@bbsu-2:1521:keonline","system","knowledge");

Do i need to set and classpath, if yes! to which file should i set the path..

Pls help me on this..



B.Swaminathan
Mobile:+91 9886510453
  #2 (permalink)  
Old April 13th, 2005, 11:01 PM
Authorized User
 
Join Date: Apr 2005
Location: Arequipa, Arequipa, Peru.
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello
you need to download a .JAR, that's the reference driver that throw the error, because, you possible don't have
download here
http://www.oracle.com/technology/sof...dbc/index.html
then configure your classpath and make a reference to that in java sentence commnad to execution,thats all

DR POMPEII, THE PLACE OF THE OBLIVION OF GOD
  #3 (permalink)  
Old June 22nd, 2005, 05:27 AM
Registered User
 
Join Date: Jun 2005
Location: LKO, UP, India.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to vikasMISRA
Default

I AM WORKING ON PROJECT IN WHICH IT HAS DATA BASE ORACLE BUT I AM NOT ABLE TO CONNECT IT WITH WEB PAGE (HTML)THROUGH JDBC
PLZ HELP ME

VIKAS
  #4 (permalink)  
Old August 9th, 2005, 06:37 AM
Friend of Wrox
 
Join Date: Jul 2004
Location: , , India.
Posts: 345
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to gokul_blr Send a message via Yahoo to gokul_blr
Default

You need to check whether the class12.jar is exist in lib / classpath floder.

Gokulan Ethiraj


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do you configure jdbc connection saf01 Crystal Reports 0 September 12th, 2005 07:24 AM
Accessing ORACLE data from Java, not using JDBC edwin_zhang Java Databases 4 May 5th, 2005 02:46 AM
connection to oracle thru jdbc venkitaraman Java Databases 5 April 6th, 2005 06:05 AM
Jdbc connection to oracle ClassNotFoundException jeffreak Java Databases 1 August 5th, 2004 12:37 AM
Exception connecting to Oracle Database with JDBC celia05es Java Databases 1 March 31st, 2004 04:42 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.