我正在尝试学习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
1条答案
按热度按时间zkure5ic1#
解决了!我不得不将我的java版本降级到Java 11。我是使用这个网站上的说明这样做的:https://medium.com/@devkosal/switching-java-jdk-versions-on-macos-80bc868e686a