title: org.hibernate.exception.JDBCConnectionException: Error calling Driver#connect
body: <p>I am trying to fix an issue but I couldnt do this. I created a JFrame to input some database information (IP, Name, User, Password).</p>
  
  <p>After this, I removed the hibernate cfg file, and in HibernatUtil class I inserted the configs by myself using .setProperty. I am using the same configs of the cfg file that I removed, which was working but now using setProperty it isnt.</p>
  
  <p>Netbeans is showing an Hibernate error:</p>
  
  <pre><code>org.hibernate.exception.JDBCConnectionException: Error calling Driver#connect
  </code></pre>
  
  <p>And a SQL Error:</p>
  
  <pre><code>java.sql.SQLException: The syntax of the connection URL 'jdbc:jtds:sybase//ip/nomeDoBanco' is invalid
  </code></pre>
  
  <p><strong>UPDATE</strong></p>
  
  <p>My HibernateUtil class:</p>
  
  <pre><code>Configuration cfg = new Configuration();
          cfg.setProperty("hibernate.dialect", "org.hibernate.dialect.SybaseDialect");
          cfg.setProperty("hibernate.connection.driver_class", "com.sybase.jdbc4.jdbc.SybDriver");
          cfg.setProperty("hibernate.connection.url", url);
          cfg.setProperty("hibernate.connection.username", username);
          cfg.setProperty("hibernate.connection.password", password);
          cfg.setProperty("hibernate.show_sql", "true");
          cfg.setProperty("hibernate.format_sql", "true");
          cfg.addAnnotatedClass(Node.class);
          cfg.addAnnotatedClass(Fault.class);
          factory = cfg.buildSessionFactory();
  </code></pre>
  
  <p>I am using these jars:</p>
  
  <p><img src="https://i.stack.imgur.com/dablQ.jpg" alt="enter image description here"></p>