You are not logged in.

#1 2017-10-26 18:50:50

xnopasaranx
Member
Registered: 2017-10-15
Posts: 8

[WORKAROUND FOUND] Minecraft + optifine: Java problems.

Hi there, I am new to arch and still learning a lot about the system. Luckily the wiki has helped me out so far and having been a linux user for over ten years, arch has so far been an awesome experience.

I have set up a new machine as a gaming and htpc. I am running 4.13.5-1-ARCH kernel on a xeon 3430 machine with amdgpu open source drivers:

inxi -G:

Graphics:  Card: Advanced Micro Devices [AMD/ATI] Curacao XT / Trinidad XT [Radeon R7 370 / R9 270X/370X]
           Display Server: x11 (X.Org 1.19.5 ) driver: amdgpu Resolution: 1920x1080@60.00hz
           OpenGL: renderer: AMD Radeon HD 8800 Series (AMD PITCAIRN / DRM 3.18.0 / 4.13.5-1-ARCH, LLVM 5.0.0)
           version: 4.5 Mesa 17.2.2

Initially, I had minecraft 1.11.2 with optifine and shaders running nicely. Framerate was superb, everything was fine. Because I had sound problems on wine games, I installed the gst-plugins as per the wine wiki (yaourt -S extra/gst-plugins-{base,good,bad,ugly} multilib/lib32-gst-plugins-{base,good})

I had to compile a huge bunch of dependencies.

Then I tried to play some minecraft again and now the game will not start anymore, all versions I tried, vanilla and optifine patched jars, wouldn't start and gave this ominous message:
"Error: Could not find or load main class net.minecraft.client.main.Main".

Naturally my first attempts to troubleshoot revolved around reinstalling jdk and checking if I screwed up my java environment with my wine experiments, but the problem persisted and other java stuff would work. Then I installed jre8 and switched defaults to that. Still the same ominous java error and nothing else in the log that would help... googling the message only bears results for windows installs and problems with special unicode characters in the user path (which I do not have, my username is "tilman").

My next step was deleting the .minecraft folder and redownloading the launcher. Still, minecraft would not start. (Oh and I have also tried to install minecraft through the repositories, after I found out that it is being provided as a community package)

Today I switched my computer back on and vanilla minecraft works again... So I tried patching it with optifine again, which will generate a new profile in the game launcher and copies the appropriate jar before patching it. That version does not work! It seems like the installer is corrupting the jar file instead of patching it.

I have redownloaded the optifine patch from the mods official page and done it all over again, and the jar cannot be started.

Anyone have a tip how I could debug this? I have no idea what logs I should take a look at or if there is something like strace that I could use to get somemore insight. Any arguments I should pass to java for more meaningful output?

To clarify: I am expecting that anyone has experience with optifine/minecraft and could assist, obviously this is not an arch issue. Just trying to get some hints on how to figure this out.

Please do tell if I can provide anymore information/logs/errormessages.

EDIT: Oh here is the output of archlinux-java status:

  java-7-jre/jre
  java-8-jdk (default)
  java-8-jre/jre

I have tried and removed a bunch of versions before figuring that the jar must get somehow corrupted.

Last edited by xnopasaranx (2017-10-26 21:53:16)

Offline

#2 2017-10-26 21:52:03

xnopasaranx
Member
Registered: 2017-10-15
Posts: 8

Re: [WORKAROUND FOUND] Minecraft + optifine: Java problems.

Okay, I am still interested in hunting down this weird bug, but I found a solution to play minecraft with optifine (oh yes... beautiful shaders.)

I figured since the installer of optifine which is supposed to patch the minecraft jar is corrupting it, maybe I should try and sideload the mod with a loader of an alternative launcher. Magiclauncher was the solution. The installer comes with an option to extract the mod and with that added in the options of the magiclauncher, I was able to start the game with enhanced graphics.

But yeah, why the heck did it patch fine before and now it corrupts the file instead, eventhough I redownloaded patch, minecraft multiple times???

Offline

Board footer

Powered by FluxBB