Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between ojdbc6.jar and ojdbc14.jar? [duplicate]

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?

like image 727
Jacx Toi Avatar asked Jan 26 '13 08:01

Jacx Toi


1 Answers

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

like image 178
Evgeniy Dorofeev Avatar answered Oct 26 '22 13:10

Evgeniy Dorofeev