Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Other Java > Java Databases
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 19th, 2004, 08:36 AM
Registered User
 
Join Date: Aug 2004
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default about jsp database connection

1. I have a mysql database on my pc.
what should I use in this statement?

ClassForname("");

2. I use the same method to connect to a Oracle server in my company

ClassForname("oracle.jdbc.driver.OracleDriver");

the server is Oracle 7.3

but it said can not found suitable driver(sql exception)

who can help? thanks very much. Gui xie! :)

  #2 (permalink)  
Old August 19th, 2004, 11:16 PM
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 have to set the classpath to the Oracle Installed folder
               [C:/D:]\oracle\ora73\jdbc\lib

Where the jar files like classes*.jar

You can find more details at
http://java.sun.com/developer/online...jdbc/jdbc.html

http://java.sun.com/docs/books/tutorial/jdbc/index.html


  #3 (permalink)  
Old August 19th, 2004, 11:24 PM
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

Dirvers can also be searched & downloaded from the following link

http://servlet.java.sun.com/products/jdbc/drivers

  #4 (permalink)  
Old September 24th, 2004, 01:11 PM
Friend of Wrox
 
Join Date: Jul 2004
Location: , , .
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Depends on the driver you have installed, I use:

"org.gjt.mm.mysql.Driver";

Think this is an older driver, but works fine.


  #5 (permalink)  
Old December 20th, 2004, 08:26 AM
Registered User
 
Join Date: Oct 2004
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Please check for the proper zipp or jar file for the driver is set in the classpath environment variable.

More:

http://www.ideas2work.com

Thanks
Quote:
quote:Originally posted by qiezi
 1. I have a mysql database on my pc.
what should I use in this statement?

ClassForname("");

2. I use the same method to connect to a Oracle server in my company

ClassForname("oracle.jdbc.driver.OracleDriver");

the server is Oracle 7.3

but it said can not found suitable driver(sql exception)

who can help? thanks very much. Gui xie! :)

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting Runtime DB connection from JSP ssivakumar76 BOOK: Beginning Java 2, JDK 5 Edition 0 June 16th, 2006 03:07 AM
error accessing database connection using jsp muthumari_p2003@yahoo.com Pro JSP 0 May 8th, 2006 05:54 AM
problem with JSP-MySQL connection pandjie Java Databases 2 November 18th, 2004 04:44 PM
cannot make JSP-MySQL connection pandjie JSP Basics 1 November 12th, 2004 01:21 PM



All times are GMT -4. The time now is 03:55 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.