.JAR file issue

ancient

New member
recently updated computers. the .exe versions of mafia work after installing java but when I try to open a .jar it wants me to choose a file to open and only wants to let me try to use the kol installer. any ideas?
 

fronobulax

Developer
Staff member
Tangentially, the exe versions of mafia are no longer supported because under some circumstances what should be an upgrade clears all settings. Until we figure put why, it is safer to not create or support that packaging.
 

ancient

New member
uninstalled and reinstalled adoptium and seems to be working but getting error could not acquire file lock for *my username*
 

fronobulax

Developer
Staff member
Even with a completely empty sessions folder open the jar and try to log in and get this

If sessions/ is empty then the only other thing I can think of is that KoLmafia cannot write to sessions/

Hopefully you are comfortable determining whether the user running KoLmafia has permission to write to sessions/ If you aren't then there are things that could be tried and I will list some of them.
 

heeheehee

Developer
Staff member
Does this work on a build older than r27042? I suspect / hope the answer is "no", since if you were encountering this class of error before, then Mafia would automatically terminate during startup. Frono's explanation makes sense, although it would still be useful if we expanded the error message to give more details (at least something that's helpful for us devs to troubleshoot what went wrong).

(Right now, if we encounter problems during startup, we discard the details of the exception and just say "we failed to grab a lock".)
 

fronobulax

Developer
Staff member
I looked through the code and the only failures I could see were in file creation and in getting the lock. Since the report was of an empty directory I guessed it was not caused by the lock, nor trying to access/overwrite an existing file. Since the fix is in, I hope the OP will get a jar with the changes and give feedback.
 
Top