设置vm环境时出现警告提示:
The selected JRE does not support the current compiler compliance level of 1.6
或者,报错:
java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
Exception in thread "main"
1.查看JDK设置是否正确
Window -> Java -> Installed JREs
如果设置狂最上面有警告提示:The selected JRE does not support the current compiler compliance level of 1.6,说明你的jdk与eclipse的默认环境版本不一致,打开一下位置:
Window -> Java -> Compiler
设置 Compiler compliance level 等于当前JDK的版本,默认一般是最新版本(如6.0)
点击保存即可。
分享到:
相关推荐
eclipse-temurin官网下载的eclipse-temurin-alpine-jre-17
Eclipse Temurin (OpenJDK8U-jre_x64_linux_hotspot_8u312b07.tar.gz)适用于Linux系统。 Eclipse Temurin 项目提供了高质量的、经过 TCK 认证的 OpenJDK 运行时和相关技术,可在整个 Java生态系统中使用。
Access restriction: The type JPEGImageEncoder is not accessible due to restriction on required library C:\Java\jre1.6.0_07\lib\rt.jar 此时解决办法: Eclipse默认把这些受访问限制的API设成了ERROR。只要...
Access restriction: The type JPEGImageEncoder is not accessible due to restriction on required library C:\Java\jre1.6.0_07\lib\rt.jar 此时解决办法: Eclipse默认把这些受访问限制的API设成了ERROR。只要把...
如果报错:eclipse项目右键,build path,configure build path,右面窗口的Libraries,add library...,jre system library。 android openfire xmpp smack即时通讯,包括:聊天发生文字,表情,图片,语音。添加...
GeoServer 2.23.4最低要求jre版本:openjdk-jre-11.0.22+7-windows-x64.exe
大数据必学Java基础(九):JDK,JRE,JVM的区别
赠送jar包:guava-24.1-jre.jar; 赠送原API文档:guava-24.1-jre-javadoc.jar; 赠送源代码:guava-24.1-jre-sources.jar; 赠送Maven依赖信息文件:guava-24.1-jre.pom; 包含翻译后的API文档:guava-24.1-jre-...
赠送jar包:mssql-jdbc-6.1.0.jre8.jar; 赠送原API文档:mssql-jdbc-6.1.0.jre8-javadoc.jar; 赠送源代码:mssql-jdbc-6.1.0.jre8-sources.jar; 赠送Maven依赖信息文件:mssql-jdbc-6.1.0.jre8.pom; 包含翻译后...
eclipse-inst-jre-win64-2020-12.rar
WireMock是一个基于http api开源的测试工具,支持HTTP/HTTPS响应存根、请求验证、代理/拦截、记录和回放,可以用于快速构建...java -jar wiremock-jre8-standalone-2.28.0.jar --port 9999 --verbose(指定端口号运行)
在使用Eclipse遇到的第一个问题是:初建项目就报错:出现具有不受限制的类路径容器,虽然没看懂这句话的意思,不过已查询资料找到解决办法。在此要感谢广大热心网友,哈哈。 根据自己的经验整理如下:首先保证...
eclipse-inst-jre-linux64.tar.gz
在Eclipse中处理图片,需要引入两个包: ...Access restriction: The type JPEGImageEncoder is not accessible due to restriction on required library C:\Java\jre1.6.0_07\lib\rt.jar 解决方法就在这里
eclipse版本 2021-09
最新版windows eclipse-inst-jre-win64.exe
Eclipse Temurin (OpenJDK8U-jdk_x64_linux_hotspot_8u312b07.tar.gz)适用于Linux系统。 Eclipse Temurin 项目提供了高质量的、经过 TCK 认证的 OpenJDK 运行时和相关技术,可在整个 Java生态系统中使用。
eclipse+jre 32位 亲测可用, 绿色环保, 官方免费 32位 32位 32位
近似过程分析包含以下内容的实现,文档和输出:整个JRE的近似和过程静态分析,以预测死锁利用。 赞成:因为它减少了“同步”语句块,而过程:因为它减少了Java的动态分派功能。 ProceduralAnalysis包含以下各项的...