Then you need to make the cp yourself as I described. -- Jacques-Henri Berthemet
-----Original Message----- From: phi...@free.fr [mailto:phi...@free.fr] Sent: Tuesday, March 13, 2018 11:03 AM To: user@cassandra.apache.org Subject: Re: Cassandra DevCenter Same result. ----- Mail original ----- De: "Jacques-Henri Berthemet" <jacques-henri.berthe...@genesys.com> À: user@cassandra.apache.org Envoyé: Mardi 13 Mars 2018 10:46:29 Objet: RE: Cassandra DevCenter And that? groovy -cp C:\DevCenter\plugins\* Cass1.groovy DevCenter\plugins contains all needed jars, your problem is just a classpath problem. If that does not work, you'll need to manually make the required classpath, check jars needed in https://mvnrepository.com/artifact/com.datastax.cassandra/cassandra-driver-core/3.4.0 "Compile dependencies" and make it yourself. -- Jacques-Henri Berthemet -----Original Message----- From: phi...@free.fr [mailto:phi...@free.fr] Sent: Tuesday, March 13, 2018 9:51 AM To: user@cassandra.apache.org Subject: Re: Cassandra DevCenter I'm now getting this: Cass1.groovy: 15: unable to resolve class com.datastax.driver.core.ProtocolOptions.Compression @ line 15, column 1. import com.datastax.driver.core.ProtocolOptions.Compression ^ Cass1.groovy: 11: unable to resolve class com.datastax.driver.core.Metadata @ line 11, column 1. import com.datastax.driver.core.Metadata ^ Cass1.groovy: 13: unable to resolve class com.datastax.driver.core.ResultSet @ line 13, column 1. import com.datastax.driver.core.ResultSet ^ Cass1.groovy: 9: unable to resolve class com.datastax.driver.core.Cluster @ line 9, column 1. import com.datastax.driver.core.Cluster ^ Cass1.groovy: 10: unable to resolve class com.datastax.driver.core.Host @ line 10, column 1. import com.datastax.driver.core.Host ^ \Cass1.groovy: 14: unable to resolve class com.datastax.driver.core.Row @ line 14, column 1. import com.datastax.driver.core.Row ^ ----- Mail original ----- De: "Jacques-Henri Berthemet" <jacques-henri.berthe...@genesys.com> À: user@cassandra.apache.org Envoyé: Mardi 13 Mars 2018 09:43:54 Objet: RE: Cassandra DevCenter Hi, Try that: groovy -cp C:\DevCenter\plugins\*.jar Cass1.groovy -- Jacques-Henri Berthemet -----Original Message----- From: phi...@free.fr [mailto:phi...@free.fr] Sent: Tuesday, March 13, 2018 9:40 AM To: user@cassandra.apache.org Subject: Re: Cassandra DevCenter Good morning, when I run groovy -cp .\cassandra-driver-core-3.4.0.jar;C:\DevCenter\plugins Cass1.groovy I get the following error message: U:\workarea\ProjetsBNP\groo>run_Cass1.bat "groovy vopts = " Caught: java.lang.NoClassDefFoundError: com/google/common/util/concurrent/AsyncFunction java.lang.NoClassDefFoundError: com/google/common/util/concurrent/AsyncFunction at Cass1.retrieveCities(Cass1.groovy:25) at Cass1.run(Cass1.groovy:67) Caused by: java.lang.ClassNotFoundException: com.google.common.util.concurrent.AsyncFunction ... 2 more Here's my Groovy code: ------------------------------------ import com.datastax.driver.core.Cluster import com.datastax.driver.core.Host import com.datastax.driver.core.Metadata import com.datastax.driver.core.Session import com.datastax.driver.core.ResultSet import com.datastax.driver.core.Row import com.datastax.driver.core.ProtocolOptions.Compression import java.sql.SQLException def retrieveCities() { final def hostsIp = 'xxx,bbb,ccc' final def hosts = '....' // def Cluster cluster = Cluster.builder().addContactPoints(hostsIp.split(',')) <== line 25 .withPort(1234) // com.datastax.driver.core.ProtocolOptions.Compression.LZ4 .withCompression(Compression.LZ4) .withCredentials( '...' , '...') .build() .... ------------------------------------ As a reminder, I can't download missing dependencies as I have no access to Internet. As a result, I must rely only on the cassandra-driver-core-3.4.0.jar jar and/or the DevCenter jars. Any help would be much appreciated. Philippe ----- Mail original ----- De: "Jacques-Henri Berthemet" <jacques-henri.berthe...@genesys.com> À: user@cassandra.apache.org Envoyé: Lundi 12 Mars 2018 09:44:27 Objet: RE: Cassandra DevCenter Hi, There is no DevCenter 2.x, latest is 1.6. It would help if you provide jar names and exceptions you encounter. Make sure you ’ re not mixing Guava versions from other dependencies. DevCenter uses Datastax driver to connect to Cassandra, double check the versions of the jars you need here: https://mvnrepository.com/artifact/com.datastax.cassandra/cassandra-driver-core Put only the jars listed on the driver version you have on you classpath and it should work. -- Jacques-Henri Berthemet From: Philippe de Rochambeau [mailto:phi...@free.fr] Sent: Saturday, March 10, 2018 6:56 PM To: user@cassandra.apache.org Subject: Re: Cassandra DevCenter Hi, thank you for replying. Unfortunately, the computer DevCenter is running on doesn’t have Internet access (for security reasons). As a result, I can’t use the pom.xml. Furthermore, I’ve tried running a Groovy program whose classpath included the DevCenter (2.x) lib directory, but to no avail as a Google dependency was missing (I can’t recall the dependency’s name). Because DevCenter manages to connect to Cassandra without downloading dependencies, there’s bound to be a way to drive the former using Java or Groovy. Le 10 mars 2018 à 18:34, Goutham reddy < goutham.chiru...@gmail.com > a écrit : Get the JARS from Cassandra lib folder and put it in your build path. Or else use Pom.xml maven project to directly download from repository. Thanks and Regards, Goutham Reddy Aenugu. On Sat, Mar 10, 2018 at 9:30 AM Philippe de Rochambeau < phi...@free.fr > wrote: Hello, has anyone tried running CQL queries from a Java program using the jars provided with DevCenter? Many thanks. Philippe --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@cassandra.apache.org For additional commands, e-mail: user-h...@cassandra.apache.org -- Regards Goutham Reddy --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@cassandra.apache.org For additional commands, e-mail: user-h...@cassandra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@cassandra.apache.org For additional commands, e-mail: user-h...@cassandra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@cassandra.apache.org For additional commands, e-mail: user-h...@cassandra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@cassandra.apache.org For additional commands, e-mail: user-h...@cassandra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@cassandra.apache.org For additional commands, e-mail: user-h...@cassandra.apache.org