我刚刚开始在我的Windows PC上安装ANTLR,遇到了一个问题.
我安装了Java作为其中的一部分(文件JavaSetup8u341.exe
,它会显示为最新),但是当我使用java org.antlr.v4.Tool
运行第一次安装测试时,我得到以下错误:
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/antlr/v4/Tool has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
Java控制面板告诉我我有最新的版本(平台版本1.8;说明建议使用高于1.7的版本).
我不知道下一步该做什么.