This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JDBC oracle8i connection on the server  RSS feed

 
parul sharma
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi!!
i have win2000 and oracle8i(server) installed.whenever i try to connect to the oracle database the java pgm. returns an error"no suitable driver found".what is the problem(i have jdk1.4 installed)
please help...
thank in advance
parul
 
Greg Kearn
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to add class11.jar to you classpath, after you downloaded it from Oracle. You need to all import java.sql.* to your program and load the correct driver for Oracle: driver="oracle.jdbc.driver.OracleDriver";
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!