我需要与jdk1.4和sql server 2012兼容的SQL server jdbc驱动jar文件。
我使用的是sqljdbc3,它与jdk1.4和jboss 4不兼容。
任何帮助将不胜感激。
最佳答案
我相信 sql server 不提供对 jdk/jre 1.4 的支持。以下是 msdn website 的内容:
sqljdbc.jar class library requires a Java Runtime Environment (JRE) of version 5.0. Using sqljdbc.jar on JRE 6.0 or JRE 7.0 will throw an exception when connecting to a database.
Note *The JDBC Driver does not support JRE 1.4*. You must upgrade JRE 1.4 to JRE 5.0, JRE 6.0, or JRE 7.0 when using the JDBC Driver. In some cases, you might need to recompile your application because it might not be compatible with JDK 5.0 API or JDK 6.0 API. For more information, see the documentation on Sun Microsystems Web site. Microsoft JDBC Driver 4.0 for SQL Server does not support JDK 7.
关于java - 适用于 jdk 1.4 的 SQL Server 2012 jdbc 驱动程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17462829/