错误提示:java.lang.IllegalArgumentException解决方法
来源:互联网 发布:为什么反对网络实名制 编辑:程序博客网 时间:2024/05/17 03:19
我的程序出现这个错误的原因是编译环境和运行环境的jdk版本不一致,首先是spring mvc的版本是3.*的,而我本机的jdk是jdk8,查阅资料后得知他俩的兼容性不是很好,有问题,只能用jdk7及以下的版本,所以我就在myeclipse中直接导入了一个jdk1.7,但是这样依然没有解决,这是因为,这样导入后,我的运行环境和编译环境不一致,所以就要经过以下的设置:
选中项目,单击右键-》Properties-》Myeclipse-》Project Facets-》查看java的jdk版本。
然后,在选中项目-》单击右键-》Run as-》Run Configurations-》选中你配置的tomcat,
这两个地方的jdk版本同上边的要一致。
这样重启一下MyEclipse就可以了。我的是MyEclipse2015.。
0 0
- 错误提示:java.lang.IllegalArgumentException解决方法
- 错误提示:java.lang.Exception: java.lang.IllegalArgumentException
- java.lang.IllegalArgumentException 错误
- java.lang.IllegalArgumentException: sessionFactory or hibernateTemplate is required 错误解决方法
- 客户端调用WebLogic axis2 webservice 错误 java.lang.IllegalArgumentException解决方法
- OKHttp java.lang.IllegalArgumentException: Unexpected char 错误解决方法
- OKHttp java.lang.IllegalArgumentException: Unexpected url错误解决方法
- 启动tomcat出现java.lang.IllegalArgumentException,解决方法
- java.lang.IllegalArgumentException: Malformed \uxxxx encoding.解决方法
- 错误提示:java.lang.IllegalArgumentException: node to traverse cannot be null!
- java.lang.IllegalArgumentException: argument type mismatch 错误
- springmvc 启动错误java.lang.IllegalArgumentException
- 错误:java.lang.IllegalArgumentException: Service not registered
- java.lang.IllegalArgumentException: No config chosen错误
- 错误java.lang.IllegalArgumentException: id to load is required for loading的解决方法
- java.lang.IllegalArgumentException: No origin bean specified解决方法
- java.lang.IllegalArgumentException: No bean specified的解决方法
- java.lang.IllegalArgumentException: column 'xxx' does not exist解决方法
- HTML5中input输入框的种类
- 最坑的WINAPI--GetCurrentDirectory
- 【BZOJ 1084】【SCOI 2005】最大子矩阵【DP & 分类讨论】
- Sql语法错误: check the manual that corresponds to your MySQL
- 如何通过cocos creator发布原生android应用
- 错误提示:java.lang.IllegalArgumentException解决方法
- 天下性能 唯池不破
- java.lang.NumberFormatException
- 51nod1113【矩阵快速幂】
- 遍历 AOV 图的所有结点
- Java出现No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing
- 刷了openwrt的路由上的数据传给网络调试助手
- 为什么循环里的gets()和fgets()在前面有一个scanf时,会跳过第一个的输出
- Java语言基础(四)-复合语句