I received an error - no java runtime present, requesting to install. What should I do?

554    Asked by JordanDuncan in Java , Asked on Oct 6, 2022

Even though JRE 8 is installed on my MAC OS Yosemite 10.10.3,while running the Android present in tools in sdk - the error - " No Java Runtime present, requesting to install " gets displayed in terminal- how do I solve this issue?

I wanted to install Xamarin test recorder - after installing they asked me to install Android sdk SDK is downloaded in Library/Developer/Xamarin/android-sdk Now when I run Android present in tools folder - I get the error - No Java runtime I've installed JRE 8 with get the verified java version from their site Can someone please help!!

Answered by Jordan PARKER

This worked for me to resolve the error - no java runtime present, requesting to install on macOS high sierra. Did not install JDK.


Go to terminal:

vim ~/.bash_profile

add export JAVA_HOME=/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home

Save and close it.

. ~/.bash_profile

java -version

You should be able to see java version



Your Answer

Interviews

Parent Categories