Unsupported major.minor version 52.0解决办法

本文详细解析了StanfordParser与不同JDK版本间的对应关系,阐述了Unsupported major.minor version错误的原因,并提供了全面的解决方案,包括调整系统及开发工具中的JDK版本设置。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.youkuaiyun.com/superit401/article/details/72731381

1.首先解释一下:

 

stanford parser和jdk版本对应关系

 


 
  1. J2SE 8 = 52,

  2. J2SE 7 = 51,

  3. J2SE 6.0 = 50,

  4. J2SE 5.0 = 49,

  5. JDK 1.4 = 48,

  6. JDK 1.3 = 47,

  7. JDK 1.2 = 46,

  8. JDK 1.1 = 45

Unsupported major.minor version 52.0: 看到Unsupported你是不是会想到jdk高版本能兼容低版本,但是低版本不能兼容高版本,不错,猜对了,其实就是这个意思。这个错误意思是你项目用JDK1.8运行过,现在又在本地的eclipse等开发工具或者本地环境变量为低版本的jdk1.7或者jdk1.6下运行,eclipse会说:“本地jdk版本太低,不支持这个jdk1.8编译过的项目运行”。

你看看你本地是报52还是51或者其他的错。

2.接下来配置这几个地方jdk要一致:

 

1)看看你系统的jdk环境变量配置的是jdk那个版本

2)Windows—— Preferences——Java——Compiler——设为jdk1.8

3)在此页面的Java——Installed JREs——设为jdk1.8

4)关闭此页面,项目右键(或者core包)——Build Path(也可是Properties)——Configure Build Path——Java Build Path——Libraries下面的JRE System Library改为jdk1.8(此处设置见参考3),保证旁边的Order and Export这个jdk与之相同

5)同页面的Java Compiler选项改为jdk1.8

6)同页面的Project Facets——右侧的Java改为1.8(此项也可以不改)

7)如果上述还不管用的话试试:

修改org.eclipse.wst.common.project.facet.core.xml:
打开项目所在的文件夹,打开.settings文件夹,修改里面的“org.eclipse.wst.common.project.facet.core.xml”文件

如我的路径是:D:\cctv5cms\maven.1490956540309\cms-cms\cms-core\.settings\org.eclipse.wst.common.project.facet.core.xml

本文链接:http://blog.youkuaiyun.com/superit401/article/details/72731381

参考1:https://www.zifangsky.cn/600.html

参考2:http://bbs.youkuaiyun.com/topics/391873068

参考3:http://www.oschina.net/question/207494_84715

--------------------- 本文来自 Starzm 的优快云 博客 ,全文地址请点击:https://blog.youkuaiyun.com/superit401/article/details/72731381?utm_source=copy

org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file [E:\BJJGSWGLJ\hd\wisdom-city-common\target\classes\com\louddt\asset\wisdom\entity\common\dict\Dict.class]; nested exception is org.springframework.core.NestedIOException: ASM ClassReader failed to parse class file - probably due to a new Java class file version that isn't supported yet: file [E:\BJJGSWGLJ\hd\wisdom-city-common\target\classes\com\louddt\asset\wisdom\entity\common\dict\Dict.class]; nested exception is java.lang.IllegalArgumentException: Unsupported class file major version 61 at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.scanCandidateComponents(ClassPathScanningCandidateComponentProvider.java:452) ~[spring-context-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents(ClassPathScanningCandidateComponentProvider.java:315) ~[spring-context-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.doScan(ClassPathBeanDefinitionScanner.java:276) ~[spring-context-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.context.annotation.ComponentScanAnnotationParser.parse(ComponentScanAnnotationParser.java:132) ~[spring-context-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:296) ~[spring-context-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:250) ~[spring-context-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:207) ~[spring-context-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationCl
最新发布
08-01
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值