> 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
jfindclass (as.character(driverClass)1中的错误:类没有找到
Tried this , but no luck RJDBC Cassandra -> Error in .jfindClass(as.character(driverClass)[1]) : class not found
尝试了这个,但是没有运气RJDBC Cassandra ->错误。jfindclass (as.character(driverClass)[1]):类没有找到
2 个解决方案
#1
0
Just to note, the answer you linked to says to change the driver name to be
需要注意的是,你链接的答案是要将驱动名改为
"com.datastax.driver.jdbc.CassandraDriver"
“com.datastax.driver.jdbc.CassandraDriver”
if you are using the dependencies listed in that answer, as opposed to the older dependencies listed here.
如果您使用的是在该答案中列出的依赖项,则与这里列出的较老的依赖项相反。
#2
0
As highlighted in this apparently related issue, a solution may be to remove the package, restart, and install it again.
正如在这个明显相关的问题中所强调的,解决方案可能是删除包、重新启动并再次安装它。
In your case:
在你的例子:
- Restart R
- 重启R
- In a clean session run the following command:
remove.packages("RJDBC")
- 在一个干净的会话中运行以下命令:remove.packages(“RJDBC”)
- Restart R again
- 再次重启R
- Re-install again the package with
install.packages("RJDBC")
- 用install.packages重新安装包(“RJDBC”)
This should fix it. A similar procedure should work for other packages giving the same error message.
这应该解决它。类似的过程应该适用于提供相同错误消息的其他包。
#1
0
Just to note, the answer you linked to says to change the driver name to be
需要注意的是,你链接的答案是要将驱动名改为
"com.datastax.driver.jdbc.CassandraDriver"
“com.datastax.driver.jdbc.CassandraDriver”
if you are using the dependencies listed in that answer, as opposed to the older dependencies listed here.
如果您使用的是在该答案中列出的依赖项,则与这里列出的较老的依赖项相反。
#2
0
As highlighted in this apparently related issue, a solution may be to remove the package, restart, and install it again.
正如在这个明显相关的问题中所强调的,解决方案可能是删除包、重新启动并再次安装它。
In your case:
在你的例子:
- Restart R
- 重启R
- In a clean session run the following command:
remove.packages("RJDBC")
- 在一个干净的会话中运行以下命令:remove.packages(“RJDBC”)
- Restart R again
- 再次重启R
- Re-install again the package with
install.packages("RJDBC")
- 用install.packages重新安装包(“RJDBC”)
This should fix it. A similar procedure should work for other packages giving the same error message.
这应该解决它。类似的过程应该适用于提供相同错误消息的其他包。