I think I have it sorted.
As advised I updated to Java 17. This initial step didn't seem to make any difference so I kept at it.
I linked all the default directories in ~/.kolmafia to my corresponding ~/mafia/ directories and was still getting 'Cannot invoke' errors,
so I copied my scripts into...
I've given the box a reboot, and gone into ~/.kolmafia/sessions and deleted active_session* (1 & 2 were there) and that seems to have sorted out the starting mafia problem out, however my 'test.kmf' barebones script (and any other I try) now return
KoLmafia r26333
Build HEAD-74f8864 16.0.1...
OK, now running my KoLmafia.jar (with java -jar -Djava.awt.headless=true /home/me/mafia/KoLmafia.jar --CLI ) results in
KoLmafia r26328
Build HEAD-49970f9 16.0.1 (AdoptOpenJDK 16.0.1+9) Linux amd64 5.11.0-49-generic
Currently Running on Linux
Local Directory is /home/me/.kolmafia
Using Java...
I located the log in /home/me/.kolmafia (rather than the directory ./.kolmafia, which does exist and has often been where it drops things, although I do also have DEBUG_today.txt s in the straight up directory where it's run from) and it reads that it's a NPE...
I often start my char up on a terminal with
java -jar KoLmafia.jar -Djava.awt.headless=true --CLI gleamglade.kmf
and I don't know what I've done wrong since updating the jar to recent (r26328) and java (which I did recently) but presently it goes
Unexpected error, debug log printed.
Returned...