[R] RJDBC doesn't load Oracle driver?

Andre Zege azege at yahoo.com
Wed Nov 24 22:24:57 CET 2010


After installing RJDBC on RedHat Linux and using it successfully with mySQL
JDBC driver i am trying to use it with Oracle database. I use the JDBC
driver that works fine elsewhere (use it in DBVizualizer). However, when i
try to load the driver, 
 drv<-JDBC("oracle.jdbc.driver.OracleDriver",
"/home/az05625/DBdrivers/ojdbc6.jar", identifier.quote="`")

it gives me error message

Error in .jfindClass(as.character(driverClass)[1]) : 
  java.lang.UnsupportedClassVersionError: Bad version number in .class file


One would think that this has to do with JRE older than the JDBC driver, but
i use the same JRE for the application that connects successfully and for
RJDBC, namely

java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) 64-Bit Server VM (build 11.0-b15, mixed mode)


What could this be a symptom of, could someone knowledgeable about RJDBC
comment?

-- 
View this message in context: http://r.789695.n4.nabble.com/RJDBC-doesn-t-load-Oracle-driver-tp3058107p3058107.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list