Skip to content

bug: this version of the Java Runtime only recognizes class file versions up to 52.0 #368

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 tasks done
titandino88 opened this issue May 3, 2025 · 2 comments
Closed
3 tasks done
Labels
Bug report Something isn't working

Comments

@titandino88
Copy link

Bug description

Updated latest JRE and then the cli gives error. Any idea?

Exception in thread "main" java.lang.UnsupportedClassVersionError: app/revanced/cli/command/MainCommandKt 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
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
Press any key to continue . . .

Error logs

Solution

No response

Additional context

No response

Acknowledgements

  • I have checked all open and closed bug reports and this is not a duplicate.
  • I have chosen an appropriate title.
  • All requested information has been provided properly.
@titandino88 titandino88 added the Bug report Something isn't working label May 3, 2025
@titandino88
Copy link
Author

ignore

@LisoUseInAIKyrios
Copy link
Contributor

Should use Java 17 runtime as described here https://github.com/ReVanced/revanced-documentation/blob/main/docs/revanced-development/0_prerequisites.md

I noticed the CLI documentation still says Java 11 which is outdated and should be changed to Java 17. https://github.com/ReVanced/revanced-cli/blob/main/docs/0_prerequisites.md

@LisoUseInAIKyrios LisoUseInAIKyrios closed this as not planned Won't fix, can't repro, duplicate, stale May 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug report Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants