我在SD卡上安装了我的SQL Anywhere数据库。我可以浏览并查看它,但我无法从代码中获取连接字符串。这是代码。我正在使用SQL Anywhere 12.0.0和BlackBerry 4.5 OS。
Connection _fconn = null;
ConfigFileME _config;
try {
_config =
(ConfigFileME)DatabaseManager.createConfigurationFileME(
"file:///SDCard/databases/DBForUltra12.db");
//ConfigFileME config =
// DatabaseManager.createConfigurationFileME("DBForUltra12.db");
// _config here has the unknown value and throws exception here.
// Exception details: (org.eclipse.debug.core.DebugException:
// com.sun.jdi.ObjectCollectedException occurred retrieving type)
_fconn = DatabaseManager.connect( _config );
} catch (ULjException e) {
e.printStackTrace();
}