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

Profiles cannot find default Java runtime when using --workDir

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 2.1.5963-2.1.5969 (Stable)
    • Java Edition Versions
    • None
    • Windows 10 Pro

      LAUNCHER
      2.1.5964

      Tuesday, July 23, 2019, 09:23:36
      2d12ae3b04458774a644a7bb7a3745a624f3ce46
    • Confirmed
    • 683996

      I moved all the contents of my %APPDATA%\.minecraft folder to the folder E:\Minecraft\minecraft-c0wg0d.

      I have a shortcut to start the launcher with the following:

      E:\Minecraft\minecraft-c0wg0d\MinecraftLauncher.exe --workDir . --launcherui

      For all my profiles, I do NOT specify the javaw.exe location, because it is in the default location, which is .\runtime\jre-x64\bin\javaw.exe.  If I try to launch Minecraft, I get the following error:

      ---------------------

      Unable to locate the Java runtime.
      Error details: The operation completed successfully.

      Filename on disk:
      Path: .
      Exists: Directory

      -----------------------

       

      If I manually specify the javaw.exe file, it works fine.  I have dozens of profiles and I don't want to have to specify the Java runtime location for all of them, and I don't understand why it can't find it in the current workDir directory.  This seems like a bug to me.

            Unassigned Unassigned
            c0wg0d c0wg0d
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: