Uploaded image for project: 'Minecraft Launcher'
  1. Minecraft Launcher
  2. MCL-21856

A Java Exception has occurred

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 2.3.240 (New Windows App)
    • Minecraft Launcher
    • None
    • Windows 10 21H1
    • Unconfirmed

      Please do not close this out-of-hand as a duplicate!

      Similar to recent issue MC-252753 , I receive this error in the launcher logs:

       

      [Info: 2022-06-24 01:26:34.6541462: GameCallbacks.cpp(177)] Launcher/launcher (main) Info Exception in thread "main" java.util.ServiceConfigurationError: org.slf4j.spi.SLF4JServiceProvider: Error accessing configuration file 

       

      A few lines later, it shows that the path attempting to be accessed cuts off before an exclamation point "!" special character which exists in the %USERPROFILE% path.

      I very much understand that this is related to MCL-774 however that issue is from 2013, and the new launcher has been written since then.

      There is also a work around for the Windows 7/8 version of the launcher. Namely, the older launcher can use the "--workDir" option to change where user files are stored. However in the Windows Store version of the app, there is no "real" exe file, and hence there is no way to launch with the workDir option.

      So at this point there are a few options for people who have ! characters in their user dir and want to play Java:

      • Use the Windows 7/8 launcher with the workDir option when playing java, and the Win 10 version when playing Bedrock (annoying but doable)
      • Throw out their existing user directory and make a new one without a ! character (very annoying)
      • Don't play the game (not exactly ideal)

      Alternatively you could add another option: you can add a feature somewhere (in the launcher app's settings?) that does the same thing as the workDir option. Or maybe go the extra mile and actually detect the potential problem immediately and let the user know about it. You could even offer the user the option to change the folder location at that time.

      I understand that this might be extra work for you, but come on! You have made a whole new launcher, NOW is the opportunity to make it a better experience!

      Thank you for your time and consideration!

            Unassigned Unassigned
            TimeForBoat Captain Timeforboat
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: