yWorks / yGuard

The open-source Java obfuscation tool working with Ant and Gradle by yWorks - the diagramming experts

Home Page:https://yworks.github.io/yGuard/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unsupported class file major version 61

jeancc opened this issue · comments

commented

I'm trying to obfuscate code compiled with openjdk 17, using yguard 3.0.0. It seems that openjdk 17 is not suported:

Ant output:

[shrink] ERROR: Unsupported class file major version 61
[shrink] Unsupported class file major version 61

Correct, yGuard does not support Java 17 byte code. See Compatibility in the yGuard documentation.

commented

I've tried to change 'Compiler compliance level' on eclipse IDE to 11, with no luck...

Actually use a Java 11 compiler to compile your source code to Java 11 byte code instead of asking a higher version compiler to produce lower version byte code.