Open NitishDhok123 opened 4 years ago
Hi. Is the classpath properly set? I mean, all dependencies the driver has are included?
yes can you tell me list of dependency that are need to connect
When you build the project with sbt clean assembly
all deps are in the fat jar.
I am trying to connect to ksqldb public class MainClass {
}
but I m facing this issue Exception in thread "main" java.lang.NoClassDefFoundError: io/confluent/ksql/rest/client/KsqlRestClient at com.github.mmolimar.ksql.jdbc.KsqlConnection.init(KsqlConnection.scala:177) at com.github.mmolimar.ksql.jdbc.KsqlConnection.(KsqlConnection.scala:163)
at com.github.mmolimar.ksql.jdbc.KsqlDriver.buildConnection(KsqlDriver.scala:71)
at com.torana.ksqldemo.MainClass.main(MainClass.java:21)
Caused by: java.lang.ClassNotFoundException: io.confluent.ksql.rest.client.KsqlRestClient
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 4 more