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

前端 未结 2 539
温柔的废话
温柔的废话 2021-01-27 07:24
> cassdrv <- JDBC(\"org.apache.cassandra.cql.jdbc.CassandraDriver\",
+                 list.files(\"C://Users//VRavimurugan.GSIN//AppData//Roaming//RazorSQL//cassa         


        
相关标签:
2条回答
  • 2021-01-27 07:54

    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.

    0 讨论(0)
  • 2021-01-27 08:04

    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.

    0 讨论(0)
提交回复
热议问题