Migrating Applications to SAP jConnect 16.x

Review the instructions to migrate applications to SAP jConnect 16.x.

  1. If your code uses SAP jConnect extensions, or if you explicitly import any SAP jConnect class in your code, change package import statements as needed.
    For example, change import statements such as:
    import com.sybase.jdbc.*
    and:
    import com.sybase.jdbc2.jdbc.*
    to:
    import com.sybase.jdbcx.*
  2. Set JDBC_HOME to the top directory of the SAP jConnect driver you installed:
    JDBC_HOME=jConnect-16_0
  3. Change your CLASSPATH environment variable to reflect the new installation; it must include:
    JDBC_HOME/classes/jconn4.jar
  4. Change the source code where the driver is loaded, and recompile the application to use the new driver:
    Class.forName("com.sybase.jdbc4.jdbc.SybDriver");
  5. Verify that the SAP jConnect 16.0 driver is the first SAP jConnect driver specified in your CLASSPATH environment variable.
Related concepts
Change SAP jConnect Extensions