3

I am aware of the --workDir command line option, and I am using it to change the location of the .minecraft folder. However, any profile I try to launch does not find the javaw.exe file (which is found in the workDir folder, as it should be in runtime\jre-x64\bin\javaw.exe). It throws 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 location, then it works. My question is, why should I have to specify the javaw.exe file if it's in the default location already in the current workDir?

3
  • Which operating system are you using? Also, is the path to whatever Java version you want to use specified in the corresponding environment variable (how you do that depends on the operating system and if you need to do that or not depends on your setup)? Sep 21 '19 at 21:20
  • @FabianRöling I'm using Windows 10. I shouldn't need an environment variable set because Minecraft includes a JRE with the installation.
    – cowgod
    Sep 22 '19 at 20:28
  • But apparently it points to the JRE in the default location. So maybe adding it to the environment variable works anyway. Sep 22 '19 at 21:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.