Due to JDBC driver location changes, beginning in
SAP Mobile Platform version 2.1. ESD #3, the existing database connection
profile may fail to ping/connect with this exception: java.lang.ClassNotFoundException: com.sybase.jdbc3.jdbc.SybDriver.
If
you see this error, change the JDBC driver location. For example, for a SQL Anywhere®
connection profile:
- In Enterprise Explorer, right-click the database connection
profile, and select Properties.
- In the left pane, select Sybase ASA Connection Properties.
- Click the upper-right triangle button to invoke the Edit Driver
Definition dialog.
- Select the Jar List tab,
and select the driver file entry that contains the incorrect JDBC driver file
path, then click Edit JAR/Zip to invoke
the Select the file dialog.
- Click Look
in to specify the path. For example: SMP_HOME\MobileWorkSpace\Eclipse\sybase_workspace\framework\eclipse\plugins\com.sybase.jconnect_7.0.0.201212211040\lib.,
where SMP_HOME represents the SAP Mobile SDK installation directory, down to the
MobileSDKXXX folder.
- Click OK to complete the
driver definition location change.
- Click OK to complete the
connection profile properties change.