我在myeclipse中想要连接上Sql Anywhere 12的数据库
查了些资料 于是做了这么些处理// 数据库的连接
Connection con = (Connection) DriverManager.getConnection("jdbc:ianywhere:driver=SQL Anywhere 12;DSN=sports");没有加载驱动因为
http://iablog.sybase.com/hinsperg/2009/10/connecting-to-sql-anywhere-using-jdbc/
以上网址表示Sql Anywhere 12 不需要加载了然后写了一点查询语句 运行出错
Unexpected exception : java.sql.SQLException: No suitable driver found for jdbc:ianywhere:driver=SQL Anywhere 12;DSN=sports, sqlstate = 08001在环境变量中的classpath加入了需要的jar : sajdbc4.jar
程序中也导入了这个jar运行依旧出错
求指教