This may be just a case of me attempting to solve a problem I have in a dumb way, but here is what I am trying to do:
Currently, to run a java app, I do java -jar Program.jar
But I have different java installations (Specifically java 8, java 11 and java 17), and have 17 set as default. If I want to run an app with java 8, I have to go into my program files folder, and copy/paste the java.exe location from the java 8 folder, then running "C:\Program Files\Eclipse Adoptium\jdk-8.0.312.7-hotspot\bin" -jar Program.jar, which works, but is sub-optimal.
In my mind, the best way to fix this would be somehow add my own command, for instance, make java8 just automatically get the java 8 executable, and the same for java 11 and 17.
What would be the best way of going about this? And if this is a stupid idea, what would be another solution to my problem?