title: Neo4j connection string
body: <p>I am using neo4j as graph database for my research thesis, i am facing hard time connecting neo4j2.3.1 with simple jdbc connection.</p>
  
  <p>Here is a very simple code that i am using to connect to neo4j.</p>
  
  <pre><code>import java.sql.Connection;
  import java.sql.DriverManager;
  import java.sql.ResultSet;
  import java.sql.Statement;
  
  public class Main {
      Main(){
          try {
              Class.forName("org.neo4j.jdbc.Driver");
          }catch (Exception ex){
  
          }
      }
  
      public static void main(String[] args) {
  
          try {
          Connection con = DriverManager.getConnection("jdbc:neo4j://localhost:7474");
          try(Statement stmt = con.createStatement()) {
              ResultSet rs = stmt.executeQuery("MATCH (n:User) RETURN n.name");
              while(rs.next()) {
                  System.out.println(rs.getString("n.name"));
              }
          }
  
          }catch (Exception ex) {
              ex.printStackTrace();
          }
      }
  }
  </code></pre>
  
  <p>Here is the log that shows there is some thing wrong with rest authentication scheme.</p>
  
  <pre><code>&gt; Aug 27, 2015 10:20:25 PM org.neo4j.jdbc.Driver createDatabases INFO:
  &gt; Embedded Neo4j support not enabled
  &gt; org/neo4j/graphdb/GraphDatabaseService Aug 27, 2015 10:20:25 PM
  &gt; org.neo4j.jdbc.Driver createDatabases INFO: Embedded Neo4j support not
  &gt; enabled org/neo4j/graphdb/GraphDatabaseService Starting the Apache
  &gt; HTTP client Couldn't find any helper support the HTTP_None challenge
  &gt; scheme. Unauthorized (401) - Unauthorized     at
  &gt; org.restlet.resource.ClientResource.doError(ClientResource.java:612)
  &gt;   at
  &gt; org.restlet.resource.ClientResource.handleInbound(ClientResource.java:1202)
  &gt;   at
  &gt; org.restlet.resource.ClientResource.handle(ClientResource.java:1069)
  &gt;   at
  &gt; org.restlet.resource.ClientResource.handle(ClientResource.java:1044)
  &gt;   at
  &gt; org.restlet.resource.ClientResource.handle(ClientResource.java:950)
  &gt;   at org.restlet.resource.ClientResource.get(ClientResource.java:658)
  &gt;   at org.neo4j.jdbc.rest.Resources.readJsonFrom(Resources.java:97)    at
  &gt; org.neo4j.jdbc.rest.Resources$DiscoveryClientResource.readInformation(Resources.java:135)
  &gt;   at
  &gt; org.neo4j.jdbc.rest.Resources.getDiscoveryResource(Resources.java:65)
  &gt;   at
  &gt; org.neo4j.jdbc.rest.Resources.getDiscoveryResource(Resources.java:60)
  &gt;   at
  &gt; org.neo4j.jdbc.Neo4jConnection.getDiscoveryResource(Neo4jConnection.java:80)
  &gt;   at
  &gt; org.neo4j.jdbc.Neo4jConnection.createExecutor(Neo4jConnection.java:69)
  &gt;   at org.neo4j.jdbc.Neo4jConnection.&lt;init&gt;(Neo4jConnection.java:61)   at
  &gt; org.neo4j.jdbc.Connections$4.doCreate(Connections.java:51)    at
  &gt; org.neo4j.jdbc.Connections.create(Connections.java:62)    at
  &gt; org.neo4j.jdbc.Driver.connect(Driver.java:64)     at
  &gt; org.neo4j.jdbc.Driver.connect(Driver.java:36)     at
  &gt; java.sql.DriverManager.getConnection(DriverManager.java:571)
  &gt; Unauthorized (401) - Unauthorized at
  &gt; java.sql.DriverManager.getConnection(DriverManager.java:233)  at
  &gt; Main.main(Main.java:20)   at
  &gt; sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)   at
  &gt; sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  &gt;   at
  &gt; sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  &gt;   at java.lang.reflect.Method.invoke(Method.java:606)     at
  &gt; com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
  </code></pre>
  
  <p>I am using neo4j2.3.1 as it comes with default authentication of username neo4j.</p>