Oluwxtope
Oluwxtope

Reputation: 11

Can't Run Gremlin Console due to "Exception in thread "main" BUG! exception in phase 'semantic analysis'... Unsupported class file major version 62"

I'm trying to learn Gremlin, I've installed the console from the website but when I try running the console with "bin/gremlin.sh", I get these errors:

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

Upvotes: 0

Views: 559

Answers (1)

Oluwxtope
Oluwxtope

Reputation: 11

Solved! I had to downgrade my java version to Java 11. I did so using instructions from this website: https://medium.com/@devkosal/switching-java-jdk-versions-on-macos-80bc868e686a

Upvotes: 1

Related Questions