-
Notifications
You must be signed in to change notification settings - Fork 122
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
Java 8 Support #364
Comments
What version of ProGuard are you using? If you are using an up-to-date version of ProGuard then it should support the latest versions of Java, which is the solution I'd recommend. Even though most of AnvilGUI is compiled with and supports Java 8, some class files in AnvilGUI are compiled with (up to) Java 21, because modern Minecraft versions require it (there is nothing that can be done about that, it's Mojang's decision). If you absolutely need a version of AnvilGUI that only contains Java 8 classes, you will need to downgrade to AnvilGUI version |
Hi, I am using latest version of ProGuard. Here is the issue. May you can set here Java 8 and set Java 21 on project JDA and may will work I am doing this without issues. |
Oh, I just assumed you were using an outdated ProGuard version because the latest version says that it should support Java 21. But the problem here is that you are using ProGuard's
In your case there should be absolutely no reason to use the And yes, it's technically possible to tell This means that going forward, the only way to support modern Minecraft versions will be to compile AnvilGUI using a mix of Java 8 and modern Java versions, as we are currently doing. Again, this does not prevent AnvilGUI from running on Java 8, it just means that if you are processing the AnvilGUI class files using a tool such as ProGuard, it will need to support modern Java versions. ProGuard should support modern Java versions, apart from some deprecated options like If you for some reason need something like ProGuard's |
[proguard] java.lang.RuntimeException: -target can only be used with class file versions <= 55 (Java 11).
[proguard] The input classes contain version 60 class files which cannot be backported to target version (52).
The text was updated successfully, but these errors were encountered: