Click here to Skip to main content
15,886,664 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Can we make a Java program by which just on one click it would check whether JRE is installed in the system or not? If not, then the program automatically downloads and installs JRE in the computer.

What I have tried:

Can we make a Java program by which just on one click it would check whether JRE is installed in the system or not? If not, then the program automatically downloads and installs JRE in the computer.
Posted
Updated 15-Sep-21 22:23pm

1 solution

No. If the computer doesn't have a Java runtime installed, then no Java code can run.

You would need to create a "bootstrapper" application in a low-level language like C. And you would almost certainly need a different bootstrapper for each OS you wanted to support.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900