How to make java load for example from a default path

C: / Program Files / Java / jre 1.8

and along the way, for example:

D: / Test / Java / jre 1.8?

  • It depends on how and where you run the application. From the IDE there will be one option, from the explorer another, from the command line the third. - enzo
  • I launch a launcher (written in C ++) after loading it, it loads jav from a non-standard path and a launcher written in java - Fanges78
  • Then only the launcher's author is aware of the java search logic in the system. - Sergey Gornostaev
  • Specify the path to Java in the environment variables (if you work in Windows) - redL1ne

0