简体   繁体   中英

Error in .jfindClass(as.character(driverClass)[1]) : class not found

> cassdrv <- JDBC("org.apache.cassandra.cql.jdbc.CassandraDriver",
+                 list.files("C://Users//VRavimurugan.GSIN//AppData//Roaming//RazorSQL//cassandra",pattern="jar$",full.names=T))

Error in .jfindClass(as.character(driverClass) 1 ) : class not found

Tried this , but no luck RJDBC Cassandra -> Error in .jfindClass(as.character(driverClass)[1]) : class not found

Just to note, the answer you linked to says to change the driver name to be

"com.datastax.driver.jdbc.CassandraDriver"

if you are using the dependencies listed in that answer , as opposed to the older dependencies listed here .

As highlighted in this apparently related issue , a solution may be to remove the package, restart, and install it again.

In your case:

  1. Restart R
  2. In a clean session run the following command: remove.packages("RJDBC")
  3. Restart R again
  4. Re-install again the package with install.packages("RJDBC")

This should fix it. A similar procedure should work for other packages giving the same error message.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM