开发者社区> 问答> 正文

jdk1.8下安装jdk1.7后,报Unsupported major.mino?报错

  之前运行没问题,包括tomcat/jetty/maven都正常,jdk为1.8,后为了运行eova,必须用1.7版本,于是又同时安装了jdk1.7,在tomcat和jetty下都报错。jdk、win7、idea15均为64位,错误如下 :

1、tomcat 运行错误:

。。。。Full details will be found in the appropriate container log file。。。

。。。。 [com.alibaba.druid.proxy.DruidDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered。。。

log中关键一句:java.lang.UnsatisfiedLinkError:\maven-3.3.9\bin\tcnative-1.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform

貌似说maven不是64位的,可系统中明明是64位呀,之前也一直正常。


2、jetty错误:

Artifact eova:war exploded: Server is not connected. Deploy is not available.
Detected server http port: 8080
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/eclipse/jetty/start/Main : Unsupported major.minor version 52.0 

at java.lang.ClassLoader.defineClass1(Native Method)
按major.minor 52.0错误,属jdk高低版本冲突造成的,但我在idea里,已经全部设置为低版本1.7的了

展开
收起
爱吃鱼的程序员 2020-06-08 20:32:47 827 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    .class是用先前的1.8编译出为的。现在用1.7的运行,当然不行。把.class删除,重新编译。
    dasda将target删除后,重新编译,问题照旧谢谢,明天我试试

    2020-06-08 20:33:05
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载