I am working on an application that requires the installation of Java JDK.
Therefore, I need to develop a detection function for JDK in the system. If it is not found, I plan to install it using a setup provided by me and also set it in the system variables under Environment Variables -> System variables as JAVA_HOME
C:\Program Files\Java\jdk1.x.y.z
by default.
Despite conducting extensive research, I am struggling to find a clear solution to accomplish this task.