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

为君一笑 提交于 2019-12-02 21:22:21

问题


> 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


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/32823720/error-in-jfindclassas-characterdriverclass1-class-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!