. Advertisement .
..3..
. Advertisement .
..4..
Hi everyone, I’m learning about java. While working, I try run Android present in the tools folder. Before I’ve installed JRE 8 with get the verified java version from their site. As a result, I get the message:
No Java Runtime present,requesting to install
What can I do about the “unable to locate a Java runtime that supports apt” issue? Is there a better approach?
The cause: This is due to Java 8’s single-dash version; all JDKs released later use double-dashes.
Therefore, the computer is likewise utilizing double dashes while searching for JAVA HOME and encountering the issue.
Solution:
Here is the way to fix the error “No Java Runtime present,requesting to install “.
Not just the JRE, but also the complete JDK, must be installed. To address the issue, JDK version 18 need to download.
I did not need the complete JDK. I only needed JRE work. None of the answers above worked for me. It used to work but it’s not working anymore. The pop-up kept popping up and I kept getting the error.
This issue was finally solved by placing the following JAVA_HOME import in /.bash_profile
I hope this helps. I am running Mac OS High Sierra.