问题描述
驱动已经换了好多次了1.8的换成1.6还是这个问题严重:此驱动程序不支持JavaRuntimeEnvironment(JRE)1.6版。请使用支持JDBC4.0的sqljdbc4.jar类库。java.lang.UnsupportedOperationException:此驱动程序不支持JavaRuntimeEnvironment(JRE)1.6版。请使用支持JDBC4.0的sqljdbc4.jar类库。atcom.microsoft.sqlserver.jdbc.SQLServerConnection.<init>(SQLServerConnection.java:238)atcom.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:841)atjava.sql.DriverManager.getConnection(DriverManager.java:582)atjava.sql.DriverManager.getConnection(DriverManager.java:185)atcom.suda.yanZheng.doGet(yanZheng.java:28)atjavax.servlet.http.HttpServlet.service(HttpServlet.java:617)atjavax.servlet.http.HttpServlet.service(HttpServlet.java:723)atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)atorg.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)atorg.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)atorg.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)atorg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)atorg.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)atorg.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)atorg.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)atorg.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:620)atorg.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)atjava.lang.Thread.run(Thread.java:662)数据库jar包两个也没用不知道什么问题
解决方案
解决方案二:
可能你的sqljdbc4.jar实际是MS提供的sqljdbc41.jar去ms网站重新下载http://msdn.microsoft.com/zh-cn/library/ms378422(v=sql.110).aspxhttp://msdn.microsoft.com/zh-cn/library/ms378526(v=sql.110).aspx下载:http://msdn.microsoft.com/en-us/sqlserver/aa937724.aspx
解决方案三:
JDK6已经过时了尽早升级JDK
解决方案四:
引用2楼tianfang的回复:
JDK6已经过时了尽早升级JDK
解决方案五:
引用3楼bcsflilong的回复:
Quote: 引用2楼tianfang的回复:
JDK6已经过时了尽早升级JDK
看看jdk1.6的oracle说明