title: How to connect Oracle DB Developer VM with java code (intellij)
body: <p>Hi I'd like to write application which use my database in java. I have Oracle DB Developer VM where I keep my database and I'don't know how can I get url address to connect Virtual Box with my code in java.<br />
  I've read 'readme' and i saw something like that &quot;try JDBC REST driver: sql HRREST/oracle@http://localhost:8080/ords/hrrest/&quot;</p>
  <p>I've tried to connect something like that but it does't work</p>
  <pre><code>public Connection connect()
  {
      String url = &quot;HRREST/oracle@http://localhost:8080/ords/hrrest/&quot;;
    
      Connection pol = null;
      try
      {
          pol = DriverManager.getConnection(url, &quot;hr&quot;, &quot;oracle&quot;);
          System.out.println(&quot;connected&quot;);
      }
      catch (SQLException throwables)
      {
          throwables.printStackTrace();
      }
  
  
      return pol;
  }
  </code></pre>
  <p>EDIT:</p>
  <p>errors:</p>
  <pre><code>maj 17, 2021 9:35:00 PM oracle.dbtools.jdbc.util.LogUtil log
  INFO: oracle.dbtools.jdbc.orest.Driver:&lt;clinit&gt;:38:No Message
  maj 17, 2021 9:35:00 PM oracle.dbtools.jdbc.util.LogUtil log
  INFO: oracle.dbtools.jdbc.orest.Driver:&lt;clinit&gt;:45::ORest driver loaded
  maj 17, 2021 9:35:00 PM oracle.dbtools.jdbc.util.LogUtil log
  INFO: oracle.dbtools.jdbc.orest.Driver:acceptsURL:80:No Message
  java.sql.SQLException: No suitable driver found for HRREST/oracle@http://localhost:8080/ords/hrrest/
      at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:702)
      at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:228)
      at AplikacjaOrlace.connect(AplikacjaOrlace.java:14)
      at AplikacjaOrlace.main(AplikacjaOrlace.java:29)
  </code></pre>
  <p><a href="https://i.stack.imgur.com/Kgy30.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Kgy30.png" alt="enter image description here" /></a></p>