• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

switch from jdbc driver 10.x to 9.x

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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>
 
If you two don't stop this rough-housing somebody is going to end up crying. Sit down and read this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic