错误信息:JRE Oracle Corporation/13.0.2 is not supported, advanced source lookup disabled: Unsupported cl

eclipse的debug功能不支持jdk1.8以上的版本

##错误信息:JRE Oracle Corporation/13.0.2 is not supported, advanced source lookup disabled: Unsupported class file major version 57.

解决方法

1.下载安装好1.8版本的jdk,并配置好环境变量。

  1. 点击菜单栏window下的preferences
    错误信息:JRE Oracle Corporation/13.0.2 is not supported, advanced source lookup disabled: Unsupported cl
    点击add添加新的jdk版本
    错误信息:JRE Oracle Corporation/13.0.2 is not supported, advanced source lookup disabled: Unsupported cl
    选择你安装jdk1.8时所选择的安装路径。(选择了JRE home之后JRE name 会自动生成)
    错误信息:JRE Oracle Corporation/13.0.2 is not supported, advanced source lookup disabled: Unsupported cl
    最后勾中jdk1.8版本,应用即可。

  2. 注意!!
    由于你之前创建的工程还是调用的你之前版本的jdk,所以在debug时还是会出现JRE Oracle Corporation/13.0.2 is not supported, advanced source lookup disabled: Unsupported class file major version 57.这样的错误。如果这些工程你需要用到debug功能就需要你再手动创建新的工程来复制你之前工程下的类了。新建工程下的代码都能成功使用debug。