title: Not able to connect to Syabse database using JDBC
body: <p>Hi I am getting problem of not connecting to sybase database using jdbc. I have also put jconn.jar in dependency of intellij 12.1. </p>
  
  <p>I am getting the following excpetion</p>
  
  <blockquote>
    <p>java.sql.SQLException: No suitable driver found for jdbc:jtds:sybase:some.com:8000/DBAQ02
        at java.sql.DriverManager.getConnection(DriverManager.java:604)
        at java.sql.DriverManager.getConnection(DriverManager.java:221)
        at gbconnect.DBConnectPOC.main(DBConnectPOC.java:81)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)</p>
  </blockquote>
  
  <p>Please see the following code . Please guide I am really got mad. Thanks in advance.</p>
  
  <pre><code>try
              {
                  Class.forName("com.sybase.jdbc3.jdbc.SybDriver");
              }
              catch (ClassNotFoundException e)
              {
                  throw new IllegalArgumentException(
                          "Driver class '" + driverClassName + "' is not valid.", e);
              }
  
          }
  
          //jdbc:jtds:sybase://some.com:8000/DBAQ02
          Statement stmt = null;
          Connection conn = null;
          try
          {
              System.out.println(driverClassName + "://" + url);
              conn = DriverManager.getConnection("jdbc:jtds:sybase:some.com:8000/DBAQ02","sa","abc");
              stmt = conn.createStatement();
              stmt.executeUpdate(SQL_CREATE);
              System.out.println("Created table in given database...");
          }
  </code></pre>