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

0 votes

I'm trying to connect cassandra with with R. I run this following command and it throws me an error

require(RJDBC)

error:

Error in .jfindClass(as.character(driverClass)[1]) : class not found
Dec 12, 2018 in Data Analytics by Ali
• 10,430 points
150 views
@Ali, Have you added the directory to the classpath?

Hey @Maverick, thank for responding. yes I've added the directory

.jaddClassPath("C:\Users\Ali\Desktop\R")
cassdrv <- JDBC("org.apache.cassandra.cql.jdbc.CassandraDriver",
"C:\Users\Ali\Desktop\R\cassandra-jdbc-1.2.5.jar")

1 answer to this question.

0 votes

Cassandra drivers seem to have dependencies that are not included with the driver. Make sure you get those as well and that you add all the JAR files to the class path.

answered Dec 12, 2018 by Maverick
• 10,040 points

Related Questions In Data Analytics

0 votes
1 answer
+1 vote
1 answer

Error saying object not found in R

Change your link_addr to linkAddr and it ...READ MORE

answered Dec 11, 2018 in Data Analytics by Maverick
• 10,040 points
656 views
0 votes
1 answer

"Error in eval(ei, envir) : object 'RDX2' not found" when trying to source the code in R

This is a very common issue that ...READ MORE

answered Oct 30, 2018 in Data Analytics by Maverick
• 10,040 points
569 views
0 votes
1 answer

Error saying "R Error: package ‘lme4’ required by ‘pbkrtest’ could not be found"

Windows 7, revo R 3.2.3 construct a directory ...READ MORE

answered Nov 9, 2018 in Data Analytics by Maverick
• 10,040 points
35 views
0 votes
1 answer

Error saying "Error in df$item : object of type 'closure' is not subsettable" when trying to use arules package

Try replacing ID <- c("A123","A123","A123","A123","B456","B456","B456") item <- c("bread", "butter", ...READ MORE

answered Nov 15, 2018 in Data Analytics by Maverick
• 10,040 points
126 views
0 votes
1 answer
0 votes
1 answer