# No driver found to connect stardog from java

**URL:** <https://community.stardog.com/t/no-driver-found-to-connect-stardog-from-java/988>\
**Category:** Support\
**Created:** [May 8, 2018, 1:55pm UTC](https://community.stardog.com/t/no-driver-found-to-connect-stardog-from-java/988 "2018-05-08T13:55:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mahroo87](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/mahroo87/32/312_2.png) [@mahroo87](https://community.stardog.com/u/mahroo87)\
**Post date:** [May 8, 2018, 1:55pm UTC](https://community.stardog.com/t/no-driver-found-to-connect-stardog-from-java/988/1 "2018-05-08T13:55:16Z")

</div>

Hello there!  
I've started to use Stardog recently and I downloaded the latest community version! But I'm struggling so much with manipulating Stardog from java application. non of the java code provided on the Stardog website and github are working on my pc and it keeps telling me that "No driver was found which supports the connection string: '[http://localhost:5820/](http://localhost:5820/)', please double-check the URL and verify the protocol is correct and try again."  
Here is a sample code that I'm trying:

```
    Stardog aStardog = Stardog.builder().create();
    try (final AdminConnection aConn = AdminConnectionConfiguration.toServer("http://localhost:5820/")
        .credentials("admin", "admin")
        .connect()) {
    aConn.list().forEach(item -> System.out.println(item));
    if (aConn.list().contains("myDB")) {aConn.drop("myDB");}
    aConn.disk("myDB").create();
}

```

I also tried to do it using DriverManager with the following code and got the same error:

```
    try{
        DriverManager dm = DriverManager.Instance;
        Driver driver = dm.getDriver("http://localhost:5820/");
        Connection conn = driver.connect("http://localhost:5820/", null);
    }

```

Please help me!  
Many thanks!

---

<div class="post-metadata">

**Author:** ![stephen](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/stephen/32/27_2.png) [@stephen](https://community.stardog.com/u/stephen)\
**Post date:** [May 8, 2018, 2:33pm UTC](https://community.stardog.com/t/no-driver-found-to-connect-stardog-from-java/988/2 "2018-05-08T14:33:09Z")

</div>

Hi,

You will need (at a minimum) to download the client-http dependency from our [Maven repository](https://www.stardog.com/docs/#_using_maven). This error simply means that you're missing it.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [May 23, 2018, 8:31am UTC](https://community.stardog.com/t/no-driver-found-to-connect-stardog-from-java/988/4 "2018-05-23T08:31:33Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
