title: NoClassDefFoundError: io/netty/handler/timeout/IdleStateHandler Datastax dse java driver
body: <p><strong>I am trying to connect DSE 5.0 server on ubuntu (with graph enable) with my java code but got this error</strong> </p>
  
  <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: io/netty/handler/timeout/IdleStateHandler
      at com.datastax.driver.core.Connection$Initializer.&lt;init&gt;(Connection.java:1409)
      at com.datastax.driver.core.Connection.initAsync(Connection.java:144)
      at com.datastax.driver.core.Connection$Factory.open(Connection.java:796)
      at com.datastax.driver.core.ControlConnection.tryConnect(ControlConnection.java:253)
      at com.datastax.driver.core.ControlConnection.reconnectInternal(ControlConnection.java:201)
      at com.datastax.driver.core.ControlConnection.connect(ControlConnection.java:79)
      at com.datastax.driver.core.Cluster$Manager.init(Cluster.java:1473)
      at com.datastax.driver.core.Cluster.init(Cluster.java:159)
      at com.datastax.driver.core.Cluster.connectAsync(Cluster.java:330)
      at com.datastax.driver.core.Cluster.connectAsync(Cluster.java:305)
      at com.datastax.driver.core.Cluster.connect(Cluster.java:247)
      at com.datastax.driver.core.DelegatingCluster.connect(DelegatingCluster.java:71)
      at com.datastax.driver.dse.DseCluster.connect(DseCluster.java:351)
  </code></pre>
  
  <p>As the error says the <strong>netty library is probably missing.</strong></p>
  
  <p><strong>I added netty-all in my pom.xml but then also got same error.</strong></p>
  
  <p><strong>Pom.xml</strong></p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;com.datastax.cassandra&lt;/groupId&gt;
      &lt;artifactId&gt;dse-driver&lt;/artifactId&gt;
      &lt;version&gt;1.1.1-beta1&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;com.datastax.cassandra&lt;/groupId&gt;
      &lt;artifactId&gt;dse-driver&lt;/artifactId&gt;
      &lt;version&gt;1.1.1-beta1&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;!-- https://mvnrepository.com/artifact/io.netty/netty-all --&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;io.netty&lt;/groupId&gt;
      &lt;artifactId&gt;netty-all&lt;/artifactId&gt;
      &lt;version&gt;4.1.6.Final&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Thanks for help..! </p>