groovy 无法运行Gremlin控制台,原因是“线程“main”中出现异常”BUG!阶段“语义分析”中出现异常...不支持的类文件主版本62”

p8ekf7hl  于 2022-11-01  发布在  其他
关注(0)|答案(1)|浏览(323)

我正在尝试学习Gremlin,我已经从网站安装了控制台,但当我尝试使用“bin/ www.example.com“运行控制台时gremlin.sh,我得到这些错误:

Exception in thread "main" BUG! exception in phase 'semantic analysis' in source unit 'Script1.groovy' Unsupported class file major version 62
    at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:969)
    at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:642)
    at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:591)
    ................ (removed for simplicity)
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 62
    at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:196
    ................ (removed for simplicity)
    at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:965)
    ... 47 more
zkure5ic

zkure5ic1#

解决了!我不得不将我的java版本降级到Java 11。我是使用这个网站上的说明这样做的:https://medium.com/@devkosal/switching-java-jdk-versions-on-macos-80bc868e686a

相关问题