File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDBC driver for Oracle 8i, Tomcat and JDK

 
Bashir Mirzad
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody
I am useing Oracle 8i, Tomcat 4.0 and JDK 1.3.0_02 which JDBC driver I need
which version jdbc I shoul download
thanks
Bashir
 
Hrithik Roshan
Greenhorn
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Bashir Mirzad:
Hi everybody
I am useing Oracle 8i, Tomcat 4.0 and JDK 1.3.0_02 which JDBC driver I need
which version jdbc I shoul download
thanks
Bashir

look for classes12.zip
im sure they are on ur machine if u have oracle Client installed on ur system;
put it in the classpath;
use either of one to load the driver!
Class.forName("oracle.jdbc.driver.OracleDriver");
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
datz it
u r all set
 
Jamie Robertson
Ranch Hand
Posts: 1879
MySQL Database Suse
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
download the thin drivers for Oracle 8.1.7(they are backward compatable). They are available from the first link in this post. There are some other useful links here too http://www.javaranch.com/ubb/Forum55/HTML/000010.html
Jamie
 
Bashir Mirzad
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Hrithik Roshan!
thanks for reply,
I put the path of the classes12.zip file in the classpath, but now I can't run a java program
when I am compiling a java file its compiling Successfully but when Running the file it give me the message

C:\javac test.java (test is the name of the file)
C:\>java test
Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'
has value '1.1', but '1.3' is required.
Error: could not find java.dll
Error: could not find Java 2 Runtime Environment.
its happened since when I put the classes12.zip in the classpath
Before that it was fine, if know plz tell me what is wrong
thanks
Bashir
 
Stanley Tan
Ranch Hand
Posts: 243
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make sure you only have 1 Oracle JDBC driver in your classpath. Also, make sure your PATH points to the JRE installed with Oracle.
 
Bashir Mirzad
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Tan!
I have only classes111.zip and a jar files in my classpath
this my classpath sample
C:\Oracle\Ora81\orb\classes\yoj.jar;C:\Oracle\Ora81\orb\classes\share.zip;C:\Oracle\Ora81\jdbc\lib\classes111.zip
thanks for your help
Bashir
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic