title: Establish connection to db2 using the jt400.jar
body: <p>I have tried using the db2jcc.jar and I successfully establish connection to db2 but now I am trying to use the jt400.jar</p>
  
  <p>I have tried to use the driver com.ibm.db2.jdbc.app.DB2Driver but I keep getting the class not found exception.</p>
  
  <p>I tried using the com.ibm.as400.access.AS400JDBCDriver but I can't establish connection.</p>
  
  <p>Can anyone help me or provide a sample code with the connection string connecting to a db2 with jt400.jar.</p>
  
  <pre><code>Class.forName("com.ibm.as400.access.AS400JDBCDriver");
  Properties prop = new Properties();
  
  prop.setProperty("user", "current");
  prop.setProperty("password", "current");
  
  con = DriverManager.getConnection("jdbc:as400://server/database", prop);
  </code></pre>