6

Possible Duplicate:
ojdbc14.jar vs. ojdbc6.jar

What is the difference between ojdbc6.jar and ojdbc14.jar?

I am using jBoss 5.1.0 GA and Oracle database 11g R2 XE with jdk1.7.0_02.

Which jar file should I use?

Community
  • 1
  • 1
Jacx Toi
  • 439
  • 2
  • 5
  • 14
  • dup here: http://stackoverflow.com/questions/3209647/ojdbc14-jar-vs-ojdbc6-jar – imulsion Jan 26 '13 at 08:52
  • yes, i already saw that, I ask this because i've seen some in forum they're using ojdbc14.jar in Oracle 11g. because im using recently ojdbc14 in oracle 10g. – Jacx Toi Jan 26 '13 at 09:03
  • then y ask the question here when u know u should be using ojdbc14.jar in oracle 11g? – imulsion Jan 26 '13 at 09:06
  • i'm not sure if the ojdbc14.jar will still applicable in oracle 11g. sorry for the question sir, im only noob for this. thanks anyway – Jacx Toi Jan 26 '13 at 09:13
  • no worries :) noobiness on stackoverflow is nothing new xD, so please dont apologize - its all part of the learning process – imulsion Jan 26 '13 at 09:15
  • Can i have your own answer or explanation from my question above sir? I want to learn from you. – Jacx Toi Jan 26 '13 at 09:18
  • 1
    no need - Evgeniy Dorofeev's answer is perfectly correct, so i would not be adding anything new to the post – imulsion Jan 26 '13 at 09:20

1 Answers1

8

Both jars will work, but ojdbc6.jar is better, it is for Java 6. Newer Java versions add features unavailable in older version, new things are marked with Since tag in javadoc, eg Java 7 Connection.abort is tagged with

Since: 1.7

if you call a method missing in the jar you will get java.lang.AbstractMethodError

Evgeniy Dorofeev
  • 133,369
  • 30
  • 199
  • 275