Page 2 of 2 FirstFirst 1 2
Results 11 to 19 of 19

Thread: Having trouble opening .jar or .exe Mafia on new computer

  1. #11

    Default

    So: there was some weird issue with my new (and temporary) laptop, where on a reboot, it was trying to sign me in as some user that didn't exist any more. So I did a full reset of it, reinstall of Windows 10 and all that.

    I was hoping that something that simple would just fix the issue, especially since Mafia was originally working (briefly) when I first got the laptop home yesterday. But no such luck.

    Also, thank you to all who have tried to help so far, your assistance is greatly appreciated, even if the problem isn't yet solved.

    I assume C:\Users\Dave!\EVERYBODY START\kolmafia is the directory that contains the Kolmafia.jar file. What other files and directories are in there? Can the user that is running actually read and write files there? Does deleting all the files and subdirectories there (except the mafia jar) and running again give different results? Would you consider creating C:\kolmafia, copying the jar file there and starting it there? Is there free space on the disk?

    I am old school and worry about things that do not need to be worried about but with both a space and an exclamation point in the path name it is possible something that is parsing to find or create files is not working in KoLmafia. Both of those were "no noes" in the days of 8.3 file names.
    Originally Posted by fronobulax View Post
    - Running in the Users\Dave!\ folder still gives the same result (with the fresh new install, it is now called EVERYTHING GOES instead of EVERYBODY START, but that's the only change): http://i.imgur.com/FbvJxdM.png

    - Creating a new empty folder with only the .jar file in it, and attempting to run it gives an identical screenshot to the one above (with different folder name, of course).
    --- Running it in the empty folder creates four new folders: "images", "scripts" (both are empty folders), "settings" (which contains a 0-byte text file GLOBAL_prefs.txt, and "relay" (which has all of these files http://i.imgur.com/8Xarchm.png )

    - Creating c:\kolmafia and sticking my .jar file in there did mostly nothing, which seems to be a result of not having the permissions to write or something? Doing it into an empty folder gave a string of about 15 of these type of errors. I directly copied my pre-existing (and previously-working) Mafia files into that folder, just to get it trimmed down to something that would fit in a single screenshot: http://i.imgur.com/25vYGTr.png

    - My previous two laptops both had the same User name, exclamation point and all, and neither one had any issue with running Mafia. I don't know if that would be the cause of any problem here, but by the time your response was posted, I was already knee-deep in the re-install process, so I couldn't confirm that with a lack of !.


    8u40 is the one that works for me. It looks like you can download that from http://www.oracle.com/technetwork/ja...8-2177648.html .
    Originally Posted by lostcalpolydude View Post
    Before the re-install, I tried with the older version of Java, but it didn't produce any different results at all.


    I actually noticed something sort of similar on my new laptop yesterday....
    ...and I'm getting frustrated. Rapidly click the shortcut 5 or so times, with the task manager open to see if java is doing anything.
    And behold, mafia started, though, despite 'starting' it 8 or so times in this series (which took maybe 2 minutes, I was going through these motions kinda fast), I got exactly one login screen and only one instance was running.

    Edit: Since then, I've been able to start it multiple times without any issue, I even grabbed a new nightly build today without problems.
    Originally Posted by the dictator View Post
    Your story gave me hope, and I tried your method of getting frustrated and clicking to open it a bunch of times. It didn't produce the same results for me, but maybe it could sense that my frustration wasn't enough. Maybe I'll try again if nothing else can help me.

  2. #12

    Default

    This particular issue could be fixed by explicitly calling Preferences.ensureGlobalDefaults(), making sure those values aren't blank. But that static block should be run when Preferences is imported. I suspect that making this one thing not break will just lead to something else breaking for the same reason...

  3. #13
    Senior Member Theraze's Avatar
    Join Date
    Mar 2010
    Posts
    8,702

    Default

    Try running in an explicit Administrative command prompt. Win-X, Command Prompt (Admin), cd "C:\Users\Dave!\Desktop\EVERYTHING GOES\kolmafia", java -jar KoLmafia-17632.jar.

    If that does work, which it probably will, I'd suggest switching from java to javaw to let you close the command prompt while it's working, but...

  4. #14

    Default

    It seems quite likely that it is some kind of IO error caused by a file rights issue or whatever, but Preferences.java catches IOException in a few places only to swallow it with empty exception handlers. I'd wildly guess that actually doing something instead of nothing for those handlers, like outputting the exception stack trace, would make it a bit easier to comprehend the precise issue that causes Tooth's woes.

  5. #15

    Default

    I figured out a workaround for my issue, since it only really needs to get me through for a couple weeks -- my good laptop is away getting repairs, so I'm on a temporary loaner until then.

    The workaround is that I tried opening the .jar file straight from a flash drive, rather than a kolmafia folder on the hard drive. Lo and behold, it opened up just fine. So for the next week or two, I'll just be running my Mafia off of an external hard drive.

    Hooray, and thanks again to everybody who had words of advice for my dumb problem.

  6. #16
    Developer fronobulax's Avatar
    Join Date
    Feb 2009
    Location
    D.C. suburbs of Virginia, USA
    Posts
    3,743

    Default

    I figured out a workaround for my issue, since it only really needs to get me through for a couple weeks -- my good laptop is away getting repairs, so I'm on a temporary loaner until then.

    The workaround is that I tried opening the .jar file straight from a flash drive, rather than a kolmafia folder on the hard drive. Lo and behold, it opened up just fine. So for the next week or two, I'll just be running my Mafia off of an external hard drive.

    Hooray, and thanks again to everybody who had words of advice for my dumb problem.
    Originally Posted by The Amazing Mr Toothpaste View Post
    Interesting. There are some Windows 10 features/bugs where users are unable to write to the local disk even when they logically should be able to do so. There are cases where Windows thinks some a file came from the internet or other untrusted source and treats it with care before allowing access. Not sure how much to worry about this since it is temporary and you have a workaround.
    You just vehemently agreed with me
    Originally Posted by Veracity View Post
    I agree with frono.
    Originally Posted by Veracity View Post
    There are 69 players more powerful than you.
    Originally Posted by Statistics Leaderboards

  7. #17
    Developer fronobulax's Avatar
    Join Date
    Feb 2009
    Location
    D.C. suburbs of Virginia, USA
    Posts
    3,743

    Default

    It seems quite likely that it is some kind of IO error caused by a file rights issue or whatever, but Preferences.java catches IOException in a few places only to swallow it with empty exception handlers. I'd wildly guess that actually doing something instead of nothing for those handlers, like outputting the exception stack trace, would make it a bit easier to comprehend the precise issue that causes Tooth's woes.
    Originally Posted by gulaschkanone View Post
    r17641 and r17642

    All I did was emit something in the previously empty catch blocks and i decided the complete stack trace was overkill, but next time we may get something...
    You just vehemently agreed with me
    Originally Posted by Veracity View Post
    I agree with frono.
    Originally Posted by Veracity View Post
    There are 69 players more powerful than you.
    Originally Posted by Statistics Leaderboards

  8. #18
    Senior Member Theraze's Avatar
    Join Date
    Mar 2010
    Posts
    8,702

    Default

    So we want to move this to Community Support, as it appears to be an issue with the machines used by TAMT and TD doing... something?

  9. #19
    Developer fronobulax's Avatar
    Join Date
    Feb 2009
    Location
    D.C. suburbs of Virginia, USA
    Posts
    3,743

    Default

    So we want to move this to Community Support, as it appears to be an issue with the machines used by TAMT and TD doing... something?
    Originally Posted by Theraze View Post
    Moved. I agree that it is an environment problem, not a KoLmafia problem.
    You just vehemently agreed with me
    Originally Posted by Veracity View Post
    I agree with frono.
    Originally Posted by Veracity View Post
    There are 69 players more powerful than you.
    Originally Posted by Statistics Leaderboards

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •