Skip to content
Prev 243112 / 398500 Next

RJDBC doesn't load Oracle driver?

I asked my local java export and his reply was that the driver was compiled
with the later version of java that i need to install. I did install it in
parallel to existing java and changed JAVA_HOME variable to point to new
java directory. I also pre-pended PATH with path to java. Still, when i try
to load the driver
Error in .jfindClass(as.character(driverClass)[1]) : 
  java.lang.UnsupportedClassVersionError: Bad version number in .class file


I am no Java expert, but it seems that new java is correctly installed,
because when i do
I get 

java version "1.6.0_23-ea"
Java(TM) SE Runtime Environment (build 1.6.0_23-ea-b03)
Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)

which is the latest Java.

Am i doing everything right to make sure that R uses the latest Java? Is
there any way to check it?