Issues running java/kolmafia

wildsidr

New member
A few days ago I tried updating java to the newest version since my previous java installation was working slowly and with many errors but now mafia opens after 15 minutes of me executing the .rar file and it does so with many issues like not loading images, running slower than before etc.

This is the version i'm running atm
openjdk version "21.0.8" 2025-07-15 LTS
OpenJDK Runtime Environment Temurin-21.0.8+9 (build 21.0.8+9-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.8+9 (build 21.0.8+9-LTS, mixed mode, sharing)

Multitool is not running, it did make a log file on my mafia folder but it appears to be still working on it even after 20 minutes?

Running thru cmd gets me this error in spanish

C:\Users\user\Desktop\New folder - copia - copia>java Kolmafia-28594.jar
Error: no se ha encontrado o cargado la clase principal Kolmafia-28594.jar
Causado por: java.lang.ClassNotFoundException: Kolmafia-28594.jar

which should be

Error: The main class Kolmafia-28594.jar could not be found or loaded.
Caused by: java.lang.ClassNotFoundException: Kolmafia-28594.jar

Any help is appreciated.
 
Weird... it's says it's linux, and I just checked and I downloaded the windows version?


it's still not running
 

Attachments

  • Screenshot_171.png
    Screenshot_171.png
    48.6 KB · Views: 10
It says it's Linux because we compile Mafia on Linux. It should still work.

After it prints the version of Java, it should pop open a GUI.

If you run `java -jar Kolmafia-28594.jar --cli`, what happens?
 
It says it's Linux because we compile Mafia on Linux. It should still work.

After it prints the version of Java, it should pop open a GUI.

If you run `java -jar Kolmafia-28594.jar --cli`, what happens?

Nothing appears to happen, I do see Open JDK Platform binary on task manager tho

I'm dealing with real life at the moment but if you comment at https://kolmafia.us/threads/multito...d-feature-discussion.30272/page-3#post-176840 or here I would be glad to figure out and implement how multitool could work better for you on your system. It does make me smile that you tried multitool as part of your troubleshooting. Thank you.

No thank you! I was researching the forums for possible tools or ways to fix my issue and found your thread.
 
That's the standard login prompt. So presumably opening the JAR also open the login GUI eventually.

Honestly not sure where to go from here. If images aren't loading and it's slow, I'd guess network issues.
 
That's the standard login prompt. So presumably opening the JAR also open the login GUI eventually.

Honestly not sure where to go from here. If images aren't loading and it's slow, I'd guess network issues.
it's not a network issue. Mafia just run extremely slow, I'm starting to believe this issue has nothing to do with Mafia but with java itself. I'm able to log into the game on another computer. Also, the internet is working properly.. I mean i'm here posting lol.

If I recall correctly this issue started happening after a power outage while kolmafia was open.
 
If I recall correctly this issue started happening after a power outage while kolmafia was open.

Grasping at straws but if the power outage corrupted mafia data files then that could be a cause. Simplest check would be to create a new empty directory, copy just the jar file to it and then run mafia from there. It will recreate all of the setting files which might give us some insight into the speed issues.
 
Back
Top