Factsheet
Videos
I'm writing an installer in C++ for my application. Not everyone has Java, and it seems that many of the people who do have JRE 1.8. I'd like to have my installer install Java to a directory and use that specific version of Java. Where do I download Java for this? I don't think I'm looking to download the installer for the program.
Also, once it's installer, how do I launch a program from the specific Java in the specific file location? This is going to be done in C++, so I'm not looking for how to use ProcessBuilder, I'm looking for how you would do it in a command prompt (I don't think java -jar jarfile.jar would work because no environmental variables are being set if I'm just downloading a zip file with the C++ launcher).
Edit: Before downvoting, please leave the typical hateful comment, it's more helpful for me if you tell me why my question is bad rather than pressing that downvote button.
What exactly is JDK? How does it affect my computer? And does it prevent me from using other coding languages?
