Jump to content

Recommended Posts

Posted

Hi

I am not expert at all in Linux - Plus I am not expert in Minecraft (my son plays on Playstation but he wants to use Mods and asked me to install the Linux version of the game to do so)

Minecraft is installed and works fine after I upgraded Java to the version 8

The version of Minecraft we have installed is 1.15.2 which corresponds to the Forge version we downloaded

Forge Installer works fine and the new "Forge" option appears besides the "last version"

Whenever we try to launch the game under the "Forge" option we get the following error message: "the game crashed whilst initializing  game / Error: java.lang.ExceptionInInitializerError: null"

I copy the log below my signature

Thank you very much for any help you may provide

JM

 

---- Minecraft Crash Report ----
// Oh - I know what I did wrong!

Time: 30/03/20 00:56
Description: Initializing game

java.lang.ExceptionInInitializerError: null
    at java.lang.J9VMInternals.ensureError(J9VMInternals.java:148) ~[?:2.9 (01-08-2020)] {}
    at java.lang.J9VMInternals.recordInitializationFailure(J9VMInternals.java:137) ~[?:2.9 (01-08-2020)] {}
    at net.minecraftforge.fml.ModLoader.<init>(ModLoader.java:121) ~[?:?] {re:classloading}
    at net.minecraftforge.fml.ModLoader.get(ModLoader.java:146) ~[?:?] {re:classloading}
    at net.minecraftforge.fml.client.ClientModLoader.lambda$begin$2(ClientModLoader.java:97) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
    at net.minecraftforge.fml.client.ClientModLoader$$Lambda$2071/000000000403B0A0.run(Unknown Source) ~[?:?] {}
    at net.minecraftforge.fml.client.ClientModLoader.lambda$createRunnableWithCatch$5(ClientModLoader.java:113) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
    at net.minecraftforge.fml.client.ClientModLoader$$Lambda$2072/000000009BFFF300.run(Unknown Source) ~[?:?] {}
    at net.minecraftforge.fml.client.ClientModLoader.begin(ClientModLoader.java:97) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
    at net.minecraft.client.Minecraft.<init>(Minecraft.java:393) [?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
    at net.minecraft.client.main.Main.main(SourceFile:166) [?:?] {re:classloading}
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0] {}
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90) ~[?:1.8.0] {}
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55) ~[?:1.8.0] {}
    at java.lang.reflect.Method.invoke(Method.java:508) ~[?:1.8.0] {}
    at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:56) [forge-1.15.2-31.1.0.jar:31.1] {}
    at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$400/0000000098598C50.call(Unknown Source) [forge-1.15.2-31.1.0.jar:31.1] {}
    at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-5.0.0-milestone.4.jar:?] {}
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-5.0.0-milestone.4.jar:?] {}
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-5.0.0-milestone.4.jar:?] {}
    at cpw.mods.modlauncher.Launcher.run(Launcher.java:81) [modlauncher-5.0.0-milestone.4.jar:?] {}
    at cpw.mods.modlauncher.Launcher.main(Launcher.java:65) [modlauncher-5.0.0-milestone.4.jar:?] {}
Caused by: java.lang.IllegalStateException: Failed to resolve consumer event type: net.minecraftforge.fml.network.simple.SimpleChannel$$Lambda$2079/000000009A7AF8F0@dcc16810
    at net.minecraftforge.eventbus.EventBus.addListener(EventBus.java:194) ~[eventbus-2.0.0-milestone.1-service.jar:?] {}
    at net.minecraftforge.eventbus.EventBus.addListener(EventBus.java:161) ~[eventbus-2.0.0-milestone.1-service.jar:?] {}
    at net.minecraftforge.eventbus.EventBus.addListener(EventBus.java:156) ~[eventbus-2.0.0-milestone.1-service.jar:?] {}
    at net.minecraftforge.eventbus.EventBus.addListener(EventBus.java:151) ~[eventbus-2.0.0-milestone.1-service.jar:?] {}
    at net.minecraftforge.fml.network.NetworkInstance.addListener(NetworkInstance.java:65) ~[?:?] {re:classloading}
    at net.minecraftforge.fml.network.simple.SimpleChannel.<init>(SimpleChannel.java:56) ~[?:?] {re:classloading}
    at net.minecraftforge.fml.network.simple.SimpleChannel.<init>(SimpleChannel.java:49) ~[?:?] {re:classloading}
    at net.minecraftforge.fml.network.NetworkRegistry$ChannelBuilder.simpleChannel(NetworkRegistry.java:409) ~[?:?] {re:classloading}
    at net.minecraftforge.fml.network.NetworkInitialization.getHandshakeChannel(NetworkInitialization.java:38) ~[?:?] {re:classloading}
    at net.minecraftforge.fml.network.FMLNetworkConstants.<clinit>(FMLNetworkConstants.java:48) ~[?:?] {re:classloading}
    ... 20 more


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Render thread
Stacktrace:
    at java.lang.J9VMInternals.ensureError(J9VMInternals.java:148)
    at java.lang.J9VMInternals.recordInitializationFailure(J9VMInternals.java:137)
    at net.minecraftforge.fml.ModLoader.<init>(ModLoader.java:121)
    at net.minecraftforge.fml.ModLoader.get(ModLoader.java:146)
    at net.minecraftforge.fml.client.ClientModLoader.lambda$begin$2(ClientModLoader.java:97)
    at net.minecraftforge.fml.client.ClientModLoader$$Lambda$2071/000000000403B0A0.run(Unknown Source)
    at net.minecraftforge.fml.client.ClientModLoader.lambda$createRunnableWithCatch$5(ClientModLoader.java:113)
    at net.minecraftforge.fml.client.ClientModLoader$$Lambda$2072/000000009BFFF300.run(Unknown Source)
    at net.minecraftforge.fml.client.ClientModLoader.begin(ClientModLoader.java:97)
    at net.minecraft.client.Minecraft.<init>(Minecraft.java:393)

-- Initialization --
Details:
Stacktrace:
    at net.minecraft.client.main.Main.main(SourceFile:166)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
    at java.lang.reflect.Method.invoke(Method.java:508)
    at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:56)
    at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$400/0000000098598C50.call(Unknown Source)
    at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37)
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54)
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72)
    at cpw.mods.modlauncher.Launcher.run(Launcher.java:81)
    at cpw.mods.modlauncher.Launcher.main(Launcher.java:65)

-- System Details --
Details:
    Minecraft Version: 1.15.2
    Minecraft Version ID: 1.15.2
    Operating System: Linux (amd64) version 5.0.0-32-generic
    Java Version: 1.8.0_241, IBM Corporation
    Java VM Version: IBM J9 VM (JRE 1.8.0 Linux amd64-64-Bit Compressed References 20200108_436782 (JIT enabled, AOT enabled)
OpenJ9   - 7d1059c
OMR      - d059105
IBM      - c8aee39), IBM Corporation
    Memory: 59872216 bytes (57 MB) / 277479424 bytes (264 MB) up to 2147483648 bytes (2048 MB)
    CPUs: 4
    JVM Flags: 11 total; -Xoptionsfile=/usr/lib/jvm/java-ibm-x86_64-80/jre/lib/amd64/compressedrefs/options.default -Xlockword:mode=default,noLockword=java/lang/String,noLockword=java/util/MapEntry,noLockword=java/util/HashMap$Entry,noLockword=org/apache/harmony/luni/util/ModifiedMap$Entry,noLockword=java/util/Hashtable$Entry,noLockword=java/lang/invoke/MethodType,noLockword=java/lang/invoke/MethodHandle,noLockword=java/lang/invoke/CollectHandle,noLockword=java/lang/invoke/ConstructorHandle,noLockword=java/lang/invoke/ConvertHandle,noLockword=java/lang/invoke/ArgumentConversionHandle,noLockword=java/lang/invoke/AsTypeHandle,noLockword=java/lang/invoke/ExplicitCastHandle,noLockword=java/lang/invoke/FilterReturnHandle,noLockword=java/lang/invoke/DirectHandle,noLockword=java/lang/invoke/ReceiverBoundHandle,noLockword=java/lang/invoke/DynamicInvokerHandle,noLockword=java/lang/invoke/FieldHandle,noLockword=java/lang/invoke/FieldGetterHandle,noLockword=java/lang/invoke/FieldSetterHandle,noLockword=java/lang/invoke/StaticFieldGetterHandle,noLockword=java/lang/invoke/StaticFieldSetterHandle,noLockword=java/lang/invoke/IndirectHandle,noLockword=java/lang/invoke/InterfaceHandle,noLockword=java/lang/invoke/VirtualHandle,noLockword=java/lang/invoke/PrimitiveHandle,noLockword=java/lang/invoke/InvokeExactHandle,noLockword=java/lang/invoke/InvokeGenericHandle,noLockword=java/lang/invoke/VarargsCollectorHandle,noLockword=java/lang/invoke/ThunkTuple -Xjcl:jclse29 -Xss1M -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
    Launched Version: 1.15.2-forge-31.1.0
    Backend library: LWJGL version 3.2.2 build 10
    Backend API: Mesa DRI Intel(R) HD Graphics 5500 (Broadwell GT2)  GL version 3.0 Mesa 19.2.8, Intel Open Source Technology Center
    GL Caps: Using framebuffer using OpenGL 3.0
    Using VBOs: Yes
    Is Modded: Definitely; Client brand changed to 'forge'
    Type: Client (map_client.txt)
    CPU: 4x Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz

 

Posted

Thank you for your reply. I did a bit a research to understand what is OpenjDK and what is Openj9. My understanding is that these are two version of Java. I must say that I do not really know why one has been installed instead of the other. I had to upgrade java to java 8 to make Minecraft work but I may have installed J9 instead.

 

Would you have an advice about what I should do practically to shift from Openj9 to OpenjDK?

 

Best regards

JM

Posted

When we say OpenJ9 we don't mean OpenJDK 9.

 

To clarify there are two Java JVMs(the bit that actually reads and executes the Java bytecode) in the market right now:

  • HotSpot, made by the OpenJDK community, and
  • OpenJ9, made by IBM

Both are implementations of the Java JVM Specification, and as long as you use Java correctly any code you write should work on both.

However, Forge does not stay within the lines. Forge leverages implementation-specific and internal utilities of HotSpot to do its black magic, meaning it won't work on OpenJ9 that is different internally.

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted
  Quote

Hi, I thank you both for your help. The diagnosis was right. Forge needed OpenJDK to work. Some people explained that I just had to get OpenJDK from the package manager in Mint, which I did (I just discovered the use of this package manager). Then I found a tutorial on the web who explained how to switch from OpenJ9 to OpenJDK (using sudo update alternatives --config java) - I think it did not uninstall OpenJ9 (this was too complicated for me) but at least it allowed me to put openJDK forward and now Forge works. I guess I still have a learning curve on Linux

Expand  

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.