*
The moose likes JDBC and the fly likes switch from jdbc driver 10.x to 9.x Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "switch from jdbc driver 10.x to 9.x" Watch "switch from jdbc driver 10.x to 9.x" New topic
Author

switch from jdbc driver 10.x to 9.x

dave geurts
Greenhorn

Joined: Sep 07, 2006
Posts: 1
I currently have the jdbc driver 10.x installed and I cannot get rid of it. I deleted every instance of ojdbc14.jar on the server. and I put classes12.jar in /$catalina_home/common/lib/ I stop tomcat restart apache and than start tomcat again. and every time a create a connection and run the following code:

DatabaseMetaData dmd = connection.getMetaData();
out.println("JDBC Driver version: " + dmd.getDriverVersion());

I get the following output:

JDBC Driver version: 10.1.0.3.0


please help me! :P thanks!
Purushoth Thambu
Ranch Hand

Joined: May 24, 2003
Posts: 425
I guess this must be classpath issue.

1. Check the PATH environment variable to make sure it doesn't contain any reference to Oracle installation directory.
2. Write a simple java class to print System.getProperty("java.class.path") and run this inside the tomcat.
3. Try setting the classes12.jar to bootclasspath using -Xbootclasspath:/p<classes12.jar path>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: switch from jdbc driver 10.x to 9.x