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 run time
I’ve installed JRE 8 with get the verified
java version from their site
Can someone please help!!
You have to install the full JDK, not only the JRE.
I had the same issue and solved by installing JDK.
Please use this link to download the latest JDK version 13.0.2.
I didn’t need the full JDK, I just needed to make JRE work and none of the other answers provided above worked for me.
Maybe it used to work, but now (1st Jul 2018) it isn’t working. I just kept getting the error and the pop-up.
I eventually solved this issue by placing the following JAVA_HOME export in ~/.bash_profile:
export JAVA_HOME=/Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home
Hope this helps someone.
I’m running Mac OS High Sierra.
Since it sounds like your JAVA_HOME variable is not set correctly, follow the instructions for setting that.
I would imagine once you set this, it will stop complaining.
In newer versions of OS X (especially Yosemite, EL Capitan), Apple has removed Java support for security reasons.
To fix this you have to do the following.
- Download Java for OS X 2015-001 from this link: https://support.apple.com/kb/dl1572?locale=en_US
Mount the disk image file and install Java 6 runtime for OS X.
After this you should not be seeing any of the below messages:
– Unable to find any JVMs matching version “(null)”
– No Java runtime present, try –request to install.
If you came across the error when tried to generate a jks file (keystore), so try adding
before running the command, like so:
/Applications/Android\ Studio.app/Contents/jre/jdk/Contents/Home/bin/keytool -genkey -v -keystore ~/key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias key
install JDK it will work ,
here is the jdk link to download .
Below is worked for me on macos mojave 10.14.6 version
I installed current jdk(https://www.oracle.com/java/technologies/javase-downloads.html)
Then do respectively;
- vim .bash_profile
- add “export JAVA_HOME=$(/usr/libexec/java_home)” to bash_profile
- source .bash_profile
it is done. And you can check the version with java -version command.