Skip to content

Incompatibility between modlauncher 8.1.x (mc 1.16) and Java 8 u321+ #91

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
gigaherz opened this issue Jan 19, 2022 · 7 comments
Closed
Labels

Comments

@gigaherz
Copy link

The latest update to Java 8 applied a change to the sun.security.util.ManifestEntryVerifier class constructor, adding a parameter to it.

This breaks binary compatibility with modlauncher 8.1.x code:

ManifestEntryVerifier mev = new ManifestEntryVerifier(manifest);

This change appears to also have been made to the other LTS branches (jdk11 and jdk17) as of last october:

JDK 16 is not affected, and being EOL, will never be.

Stack trace (trimmed):

Exception in thread "main" [15:56:10] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]: java.lang.NoSuchMethodError: sun.security.util.ManifestEntryVerifier.<init>(Ljava/util/jar/Manifest;)V
[15:56:10] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]:         at cpw.mods.modlauncher.SecureJarHandler.createCodeSource(SecureJarHandler.java:66)
[15:56:10] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]:         at cpw.mods.modlauncher.TransformingClassLoader$DelegatedClassLoader.findClass(TransformingClassLoader.java:275)
[15:56:10] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]:         at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:136)
[15:56:10] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]:         at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:98)
[15:56:10] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]:         at java.lang.ClassLoader.loadClass(Unknown Source)
@usulthemouse
Copy link

usulthemouse commented Jan 21, 2022

what is the right version of java to downgrade to? Coming late to the Minecraft party, and I don't know what version of java to down, and for the life of me I can't find a version list from Oracle.

@SizableShrimp
Copy link

This is not a support forum; you should use the forge discord for further questions. However, anything below 8u321 should work fine. Or use the bundled JRE that came with the launcher.

@gigaherz
Copy link
Author

Anything older than Java 8 u321, which would be Java 8 u312 or u311.
Since Oracle's java archive requires an account, you can find it from the Adoptium project; https://adoptium.net/?variant=openjdk8&jvmVariant=hotspot

@sciwhiz12
Copy link

Fixed by e749b19 (#92).

@huangsijun17
Copy link

Excuse me, which version of Forge started to fix this problem?

@jeremiahwinsley
Copy link

Excuse me, which version of Forge started to fix this problem?

This was fixed in Forge 36.2.26.

@huangsijun17
Copy link

Excuse me, which version of Forge started to fix this problem?

This was fixed in Forge 36.2.26.

Thx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants