New win11 install, can't figure out mafia anymore

Msapeman

New member
So I managed to break my old pc trying to upgrade it and had to buy a new laptop. I'm new to windows11, but not mafia. I've downloaded and installed java, but double clicking the mafia .jar files just says "a java exception has occurred". Uninstall/reinstall, reboot, nothing seems to work. Changed the folder off the desktop, nothing. What am I doing wrong?
 
Last edited:
Dunno yet. I bought some software, found out it required W11 and so just broke down and adopted W11. No problems or changes for mafia. So it is almost certainly your installation.

You don't want Mafia on the desktop but I think you figured that out.

Are there any debug files that might indicate the exception?

If not open a command line/prompt and change the directory to the one that contains the mafia jar.

java -version

will confirm java is installed and possibly tell us that you have the wrong version of Java.

java -jar <mafiajarname>

will run and you might see error messages in the command console that will help.

It may not work as well as expected but if you download the multitool jar and put it in the same directory as the mafia jar it will do some environmental checks.

 
java version is 17.0.12
error reads: linkageerror occurred while loading main class net.sourceforge.kolmafia.kolmafia java.lang.unsupportedclassversionerror: net/sourceforge/kolmafia/kolmafia has been compile by a more recent version of the java runtime (class file version 65.0), this version of the java runtime only recognizes class file versions up to 61.0
 
Thanks! Now mafia is at least loading, but its giving a "could not acquire file lock". I'll restart and see if that fixes anything.

edit: it did! Thanks so much, glad it was an easy fix.
 
Back
Top