-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Package Issue: multiMC #32950
Comments
Update: I have previously set the java version to java-1-8. Now when openjdk-11 is in use i get this error with Minecraft 1.17: Minecraft process ID: 6916 Using onesix launcher. Exception in thread "main" java.lang.UnsupportedClassVersionError: net/minecraft/client/main/Main has been compiled by a more recent version of the Java Runtime (class file version 60.0), this version of the Java Runtime only recognizes class file versions up to 55.0 Error with Minecraft 1.8.9: Params: Window size: max (if available) Java Arguments: Minecraft process ID: 7020 Using onesix launcher. [17:31:29] [Client thread/INFO]: Setting user: oprem |
Minecraft 1.17 requires java 16 or higher, for now that isn't packaged in void but you can download it from adoptium. Once that's downloaded, you can tell multimc to use it from the instance settings menu. |
alright, ive submitted a package request for openjdk-17, but version 1.8.9 throws a different error. one i try to run it with that java version i will update the issue |
Okay, now Minecraft 1.17 works. Minecraft 1.8.9 throws a different error: Time: 9/15/21, 2:06 AM java.lang.ExceptionInInitializerError A detailed walkthrough of the error, its code path and all known details is as follows:-- Head -- -- Initialization -- -- System Details -- |
Do you have mesa installed? It seems like some sort of graphics issue based on the error message. I tried 1.8.9 with Java 16 on my (AMD) machine and it seems to have worked so I'm not quite convinced it's a packaging issue. You might have better luck asking on a multimc support channel. |
I've had issues in the past with very old versions of minecraft not working properly on newer java versions. In this case you're probably just missing graphics drivers like @Hnaguski said, but you can try launching the 1.8.9 instance with an older jdk. Here's a screenshot of my beta 1.7.3 instance configured to use openjdk-8. You need to install the Ultimately it's looking like the MultiMC package might need to be removed anyway. The upstream license doesn't permit using the logo or name in packages such as ours 🙃. So the only way MultiMC can continue to be packaged is if we forked and renamed it. It's a mess, for now you're best off downloading a procompiled binary it from their website, installing Normally you'd want to extract the MultiMC tar somewhere like [Desktop Entry]
Version=1
Type=Application
Name=minecraft
GenericName=Minecraft
Comment=Game
Exec=/home/<Your Username>/.local/opt/MultiMC/MultiMC
Actions=
Categories=Game; |
You could also go the way of the .deb package, which just downloads the latest multimc binary from multimc.org. Peterix is fine with this, as stated in MultiMC/Launcher#4102 (comment) |
I think the best solution here is to make the package restricted, we won't build or ship it and users are free to either download the binaries themselves or use the repository to build the package from source themselves for personal use. There are a few problems I see with shipping binaries:
|
I definitely share Duncaen's opinion on the matter, this wouldn't be a good solution for a void package. Unless someone wants to maintain a fork we can build from source, the package should be restricted. |
Yes it should just be restricted IMO WRT the original issue you must use different versions of Java for different versions of minecraft. |
if anyone is still experiencing issues with minecraft 1.8.9, you need to have the package xrandr installed. Also use openjdk8 with 1.8.9, and use openjdk15 and up for 1.17 (tested on openjdk16) for those versions to work. |
Minecraft 1.17 Profile error: (due to openjdk-11? though it should support java runtime up to 55, but it says 52 in the multimc console
~
~
~
MultiMC version: 0.6.12-custom
Java path is:
/usr/lib/jvm/java-1.8-openjdk/jre/bin/java
Checking Java version...
Java is version 1.8.0_272, using 64-bit architecture, from Void.
Kernel driver in use: amdgpu
Main Class:
net.minecraft.client.main.Main
Native path:
/home//.multimc/instances/1.17.1/natives
Traits:
traits FirstThreadOnMacOS
traits XR:Initial
Libraries:
/home/r/.multimc/libraries/org/lwjgl/lwjgl-glfw/3.2.2/lwjgl-glfw-3.2.2.jar
/home/r/.multimc/libraries/org/lwjgl/lwjgl-jemalloc/3.2.2/lwjgl-jemalloc-3.2.2.jar
/home//.multimc/libraries/org/lwjgl/lwjgl-openal/3.2.2/lwjgl-openal-3.2.2.jar
/home/r/.multimc/libraries/org/lwjgl/lwjgl-opengl/3.2.2/lwjgl-opengl-3.2.2.jar
/home/r/.multimc/libraries/org/lwjgl/lwjgl-stb/3.2.2/lwjgl-stb-3.2.2.jar
/home/r/.multimc/libraries/org/lwjgl/lwjgl-tinyfd/3.2.2/lwjgl-tinyfd-3.2.2.jar
/home/r/.multimc/libraries/org/lwjgl/lwjgl/3.2.2/lwjgl-3.2.2.jar
/home//.multimc/libraries/com/mojang/blocklist/1.0.5/blocklist-1.0.5.jar
/home//.multimc/libraries/com/mojang/patchy/2.1.6/patchy-2.1.6.jar
/home//.multimc/libraries/com/github/oshi/oshi-core/5.7.5/oshi-core-5.7.5.jar
/home//.multimc/libraries/net/java/dev/jna/jna/5.8.0/jna-5.8.0.jar
/home//.multimc/libraries/net/java/dev/jna/jna-platform/5.8.0/jna-platform-5.8.0.jar
/home//.multimc/libraries/org/slf4j/slf4j-api/1.8.0-beta4/slf4j-api-1.8.0-beta4.jar
/home//.multimc/libraries/org/apache/logging/log4j/log4j-slf4j18-impl/2.14.1/log4j-slf4j18-impl-2.14.1.jar
/home//.multimc/libraries/com/ibm/icu/icu4j/66.1/icu4j-66.1.jar
/home//.multimc/libraries/com/mojang/javabridge/1.1.23/javabridge-1.1.23.jar
/home//.multimc/libraries/net/sf/jopt-simple/jopt-simple/5.0.3/jopt-simple-5.0.3.jar
/home//.multimc/libraries/io/netty/netty-all/4.1.25.Final/netty-all-4.1.25.Final.jar
/home//.multimc/libraries/com/google/guava/guava/21.0/guava-21.0.jar
/home//.multimc/libraries/org/apache/commons/commons-lang3/3.5/commons-lang3-3.5.jar
/home//.multimc/libraries/commons-io/commons-io/2.5/commons-io-2.5.jar
/home//.multimc/libraries/commons-codec/commons-codec/1.10/commons-codec-1.10.jar
/home//.multimc/libraries/com/mojang/brigadier/1.0.18/brigadier-1.0.18.jar
/home//.multimc/libraries/com/mojang/datafixerupper/4.0.26/datafixerupper-4.0.26.jar
/home//.multimc/libraries/com/google/code/gson/gson/2.8.0/gson-2.8.0.jar
/home//.multimc/libraries/com/mojang/authlib/2.3.31/authlib-2.3.31.jar
/home//.multimc/libraries/org/apache/commons/commons-compress/1.8.1/commons-compress-1.8.1.jar
/home//.multimc/libraries/org/apache/httpcomponents/httpclient/4.3.3/httpclient-4.3.3.jar
/home//.multimc/libraries/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar
/home//.multimc/libraries/org/apache/httpcomponents/httpcore/4.3.2/httpcore-4.3.2.jar
/home//.multimc/libraries/it/unimi/dsi/fastutil/8.2.1/fastutil-8.2.1.jar
/home//.multimc/libraries/org/apache/logging/log4j/log4j-api/2.14.1/log4j-api-2.14.1.jar
/home//.multimc/libraries/org/apache/logging/log4j/log4j-core/2.14.1/log4j-core-2.14.1.jar
/home//.multimc/libraries/com/mojang/text2speech/1.11.3/text2speech-1.11.3.jar
/home//.multimc/libraries/com/mojang/minecraft/1.17.1/minecraft-1.17.1-client.jar
Native libraries:
/home//.multimc/libraries/org/lwjgl/lwjgl-glfw/3.2.2/lwjgl-glfw-3.2.2-natives-linux.jar
/home//.multimc/libraries/org/lwjgl/lwjgl-jemalloc/3.2.2/lwjgl-jemalloc-3.2.2-natives-linux.jar
/home//.multimc/libraries/org/lwjgl/lwjgl-openal/3.2.2/lwjgl-openal-3.2.2-natives-linux.jar
/home//.multimc/libraries/org/lwjgl/lwjgl-opengl/3.2.2/lwjgl-opengl-3.2.2-natives-linux.jar
/home//.multimc/libraries/org/lwjgl/lwjgl-stb/3.2.2/lwjgl-stb-3.2.2-natives-linux.jar
/home//.multimc/libraries/org/lwjgl/lwjgl-tinyfd/3.2.2/lwjgl-tinyfd-3.2.2-natives-linux.jar
/home//.multimc/libraries/org/lwjgl/lwjgl/3.2.2/lwjgl-3.2.2-natives-linux.jar
/home//.multimc/libraries/com/mojang/text2speech/1.11.3/text2speech-1.11.3-natives-linux.jar
Params:
--username --version MultiMC5 --gameDir /home//.multimc/instances/1.17.1/.minecraft --assetsDir /home//.multimc/assets --assetIndex 1.17 --uuid --accessToken --userType --versionType release
Window size: 854 x 480
Java Arguments:
[-Xms512m, -Xmx1024m, -Duser.language=en]
Minecraft process ID: 5041
Using onesix launcher.
Exception in thread "main" java.lang.UnsupportedClassVersionError: net/minecraft/client/main/Main has been compiled by a more recent version of the Java Runtime (class file version 60.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(ClassLoader.java:756)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:171)
at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:231)
at org.multimc.EntryPoint.listen(EntryPoint.java:143)
at org.multimc.EntryPoint.main(EntryPoint.java:34)
Process exited with code 1.
Minecraft version 1.8.9 error:
~
~
~
MultiMC version: 0.6.12-custom
Minecraft folder is:
/opt/.multimc/instances/1.8.9/.minecraft
Java path is:
/usr/lib/jvm/java-1.8-openjdk/jre/bin/java
Checking Java version...
Java is version 1.8.0_272, using 64-bit architecture, from Void.
Kernel driver in use: amdgpu
Main Class:
net.minecraft.client.main.Main
Native path:
/opt/.multimc/instances/1.8.9/natives
Libraries:
/opt/.multimc/libraries/net/java/jinput/jinput/2.0.5/jinput-2.0.5.jar
/opt/.multimc/libraries/net/java/jutils/jutils/1.0.0/jutils-1.0.0.jar
/opt/.multimc/libraries/org/lwjgl/lwjgl/lwjgl/2.9.4-nightly-20150209/lwjgl-2.9.4-nightly-20150209.jar
/opt/.multimc/libraries/org/lwjgl/lwjgl/lwjgl_util/2.9.4-nightly-20150209/lwjgl_util-2.9.4-nightly-20150209.jar
/opt/.multimc/libraries/com/mojang/netty/1.7.7/netty-1.7.7.jar
/opt/.multimc/libraries/oshi-project/oshi-core/1.1/oshi-core-1.1.jar
/opt/.multimc/libraries/net/java/dev/jna/jna/3.4.0/jna-3.4.0.jar
/opt/.multimc/libraries/net/java/dev/jna/platform/3.4.0/platform-3.4.0.jar
/opt/.multimc/libraries/com/ibm/icu/icu4j-core-mojang/51.2/icu4j-core-mojang-51.2.jar
/opt/.multimc/libraries/net/sf/jopt-simple/jopt-simple/4.6/jopt-simple-4.6.jar
/opt/.multimc/libraries/com/paulscode/codecjorbis/20101023/codecjorbis-20101023.jar
/opt/.multimc/libraries/com/paulscode/codecwav/20101023/codecwav-20101023.jar
/opt/.multimc/libraries/com/paulscode/libraryjavasound/20101123/libraryjavasound-20101123.jar
/opt/.multimc/libraries/com/paulscode/librarylwjglopenal/20100824/librarylwjglopenal-20100824.jar
/opt/.multimc/libraries/com/paulscode/soundsystem/20120107/soundsystem-20120107.jar
/opt/.multimc/libraries/io/netty/netty-all/4.0.23.Final/netty-all-4.0.23.Final.jar
/opt/.multimc/libraries/com/google/guava/guava/17.0/guava-17.0.jar
/opt/.multimc/libraries/org/apache/commons/commons-lang3/3.3.2/commons-lang3-3.3.2.jar
/opt/.multimc/libraries/commons-io/commons-io/2.4/commons-io-2.4.jar
/opt/.multimc/libraries/commons-codec/commons-codec/1.9/commons-codec-1.9.jar
/opt/.multimc/libraries/com/google/code/gson/gson/2.2.4/gson-2.2.4.jar
/opt/.multimc/libraries/com/mojang/authlib/1.5.21/authlib-1.5.21.jar
/opt/.multimc/libraries/com/mojang/realms/1.7.59/realms-1.7.59.jar
/opt/.multimc/libraries/org/apache/commons/commons-compress/1.8.1/commons-compress-1.8.1.jar
/opt/.multimc/libraries/org/apache/httpcomponents/httpclient/4.3.3/httpclient-4.3.3.jar
/opt/.multimc/libraries/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar
/opt/.multimc/libraries/org/apache/httpcomponents/httpcore/4.3.2/httpcore-4.3.2.jar
/opt/.multimc/libraries/org/apache/logging/log4j/log4j-api/2.0-beta9/log4j-api-2.0-beta9.jar
/opt/.multimc/libraries/org/apache/logging/log4j/log4j-core/2.0-beta9/log4j-core-2.0-beta9.jar
/opt/.multimc/libraries/tv/twitch/twitch/6.5/twitch-6.5.jar
/opt/.multimc/libraries/com/mojang/minecraft/1.8.9/minecraft-1.8.9-client.jar
Native libraries:
/opt/.multimc/libraries/net/java/jinput/jinput-platform/2.0.5/jinput-platform-2.0.5-natives-linux.jar
/opt/.multimc/libraries/org/lwjgl/lwjgl/lwjgl-platform/2.9.4-nightly-20150209/lwjgl-platform-2.9.4-nightly-20150209-natives-linux.jar
Params:
--username --version MultiMC5 --gameDir /opt/.multimc/instances/1.8.9/.minecraft --assetsDir /opt/.multimc/assets --assetIndex 1.8 --uuid --accessToken --userProperties --userType
Window size: 854 x 480
Java Arguments:
[-Xms512m, -Xmx1024m, -Duser.language=en]
Minecraft process ID: 5763
Using onesix launcher.
[16:59:09] [Client thread/INFO]: Setting user:
[16:59:09] [Client thread/INFO]: (Session ID is token::)
[16:59:10] [Client thread/INFO]: LWJGL Version: 2.9.4
---- Minecraft Crash Report ----
// Who set us up the TNT?
Time: 9/13/21 4:59 PM
Description: Initializing game
java.lang.ExceptionInInitializerError
at ave.ar(SourceFile:560)
at ave.am(SourceFile:361)
at ave.a(SourceFile:310)
at net.minecraft.client.main.Main.main(SourceFile:124)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:196)
at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:231)
at org.multimc.EntryPoint.listen(EntryPoint.java:143)
at org.multimc.EntryPoint.main(EntryPoint.java:34)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
at org.lwjgl.opengl.LinuxDisplay.getAvailableDisplayModes(LinuxDisplay.java:951)
at org.lwjgl.opengl.LinuxDisplay.init(LinuxDisplay.java:738)
at org.lwjgl.opengl.Display.(Display.java:138)
... 12 more
A detailed walkthrough of the error, its code path and all known details is as follows:
-- Head --
Stacktrace:
at ave.ar(SourceFile:560)
at ave.am(SourceFile:361)
-- Initialization --
Details:
Stacktrace:
at ave.a(SourceFile:310)
at net.minecraft.client.main.Main.main(SourceFile:124)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:196)
at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:231)
at org.multimc.EntryPoint.listen(EntryPoint.java:143)
at org.multimc.EntryPoint.main(EntryPoint.java:34)
-- System Details --
Details:
Minecraft Version: 1.8.9
Operating System: Linux (amd64) version 5.13.15_1
Java Version: 1.8.0_272, Void
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Void
Memory: 458668152 bytes (437 MB) / 514850816 bytes (491 MB) up to 954728448 bytes (910 MB)
JVM Flags: 2 total; -Xms512m -Xmx1024m
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
Launched Version: MultiMC5
LWJGL: 2.9.4
OpenGL:
ERRORRuntimeException: No OpenGL context found in the current thread.GL Caps:
Using VBOs: No
Is Modded: Probably not. Jar signature remains and client brand is untouched.
Type: Client (map_client.txt)
Resource Packs:
Current Language:
ERRORNullPointerException: nullProfiler Position: N/A (disabled)
CPU:
#@!@# Game crashed! Crash report saved to: #@!@# /opt/.multimc/instances/1.8.9/.minecraft/crash-reports/crash-2021-09-13_16.59.10-client.txt
[16:59:10] [Client Shutdown Thread/INFO]: Stopping server
Process exited with code 255.
The text was updated successfully, but these errors were encountered: