No java runtime present requesting install mac os

No Java runtime present, requesting install. #849

Comments

jlubeck commented Oct 29, 2020

[REQUIRED] Please fill in the following fields:

  • Unity editor version: 2020.2.0b8.3329
  • Firebase Unity SDK version: 6.16.1.
  • Source you installed the SDK: Package Manager
  • Problematic Firebase Component: All
  • Other Firebase Components in use: Core, Crashlytics, Analytics
  • Additional SDKs you are using: none
  • Platform you are using the Unity editor on: Mac
  • Platform you are targeting: iOS/Android
  • Scripting Runtime: IL2CPP

[REQUIRED] Please describe the issue here:

Whenever I try to update a version of Firebase, after the Package Manager finishes downloading the new files, apparently it tries to do something with the Android dependencies, this dialog opens up:

But it immediately throws an error

And this dialog pops up:

What’s interesting though, is that if I open up the terminal and type java -version I get this:

Even more, if I copy that whole command that it’s trying to run to the terminal, everything runs just fine:

So for some reason it just doesn’t work inside Unity (where everything is also set up correctly, and I can build Andriod builds just fine).

The text was updated successfully, but these errors were encountered:

Источник

SOLUTION: No Java runtime present, requesting install – Mac OS X Yosemite

I was working on a simple java based desktop application today. It was packaged in an executable jar. One of its required features was to launch another executable jar in a separate instance of JVM. Here is my code dealing with this requirement:

This is equivalent of running following command on terminal.

This code was working fine on Windows and Ubuntu. But on Mac, it resulted in a dialogue like this:

This error dialogue comes up if you try to use the java command in the terminal after installing Oracle JRE 1.8 on MacOS X Yosemite.

It was a surprise for me as the first app was running fine on the same machine under same configuration. I knew for sure that I have installed Oracle JRE 1.8u60 on this system so java executable should be available on the command line. To investigate further, I launched the Terminal and run which java . It returned / usr / bin / java . Then I run java — version which returned:

Читайте также:  Linux boot from lvm

and the same dialogue appeared again.

I had no idea how to proceed further. So I started searching on Google. It turned out that, by default, / usr / bin / java is a symlink to / System / Library / Frameworks / JavaVM .framework / Versions / A / Commands / java . To make it work on command line, we have to delete it and then recreate it pointing it to the java command in newly installed Oracle JRE which resides at / Library / Internet \ Plug — Ins / JavaAppletPlugin .plugin .

Thus, the two commands that we need to run to fix this issue are given below:

Источник

Installing Java on OS X 10.9 (Mavericks)

I have installed the JDK on Mac OS X v10.8 (Mountain Lion). When I upgraded it to Mac OS X v10.9 (Mavericks) and ran java -version in the terminal, it showed:

No Java runtime present, requesting install.

Then I manually installed the JDK (1.7) on my Mac. It seems that the installation worked fine. When the installation was done, I opened the terminal and typed java -version as well. It also showed the same error:

No Java runtime present, requesting install.

How can I solve this problem?

11 Answers 11

The new Mavericks (10.9) showed me the «Requesting install», but nothing happened.

The solution was to manually download and install the official Java package for OS X, which is in Java for OS X 2013-005 .

Update: As mentioned in the comments below, there is a newer version of this same package:

Java for OS X 2014-001 includes installation improvements, and supersedes all previous versions of Java for OS X. This package installs the same version of Java 6 included in Java for OS X 2013-005.

If you only want to install the latest official JRE from Oracle, you can get it there, install it, and export the new JAVA_HOME in the terminal.

  • Open your Terminal
  • java -version gives you an error and a popup
  • Get the JRE dmg on http://www.oracle.com/technetwork/java/javase/downloads/index.html
  • Install it
  • In your terminal, type: export JAVA_HOME=»/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home»
  • java -version now gives you java version «1.7.0_45»

That’s the cleanest way I found to install the latest JRE.

Читайте также:  Настройка гнезда наушников windows 10

You can add the export JAVA_HOME line in your .bashrc to have java permanently in your Terminal:

/.profile instead of

/.bash_profile to get this work.

The right place to download the JDK for Java 7 is Java SE Downloads.

All the other links provided above, as far as I can tell, either provide the JRE or Java 6 downloads (incidentally, if you want to run Eclipse or other IDEs, like IntelliJ IDEA, you will need the JDK, not the JRE).

Regarding IntelliJ IDEA — that will still ask you to install Java 6 as it apparently needs an older class loader or something: just follow the instructions when the dialog pop-up appears and it will install the JDK 6 in the right place.

Afterwards, you will need to do the sudo ln -snf mentioned in the answer above:

(copied here as it was mentioned that «above» may eventually not make sense as answers are re-sorted).

I also set my JAVA_HOME to point to where jdk_1.7.0_xx.jdk was installed:

Then add that to your PATH :

The alternative is to fuzz around with Apple’s insane maze of hyperlinks, but honestly life is too short to bother.

Источник

Even though JRE 8 is installed on my MAC -» No Java Runtime present,requesting to install » gets displayed in terminal

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!!

14 Answers 14

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 17.

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.

Читайте также:  Stardock objectdock windows 10

I eventually solved this issue by placing the following JAVA_HOME export in

Hope this helps someone. I’m running Mac OS High Sierra.

After installing openjdk with brew and runnning brew info openjdk I got this

And from that I got this command here, and after running it I got Java working

sudo ln -sfn /usr/local/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk

If you came across the error when tried to generate a jks file (keystore), so try adding

before running the command, like so:

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.

2021 solution

Details

On an M1 Mac/Apple Silicon (running Big Sur), I had already openjdk installed. As signaled in a previous answer by Mohammed, openjdk is keg-only with brew , and hence requires adding a symlink.

After following this, it solved the No Java Runtime present error, but rJava was complaining about missing libjvm.dylib and that existing libraries were for the wrong architecture:

Installing Eclipse Temurin (previously AdoptOpenJDK ) (and removing the previously created symlink in /Library/Java/JavaVirtualMachines/openjdk.jdk ) immediately solved both issues seamlessly.

Just run brew install temurin and everything should be OK.

Источник

Installing Java on macOS 10.15 Catalina

Since OS X 10.7 Java is not (pre-)installed anymore, let’s fix that. As I’m writing this, Java 11.0.4 is the latest version and AdoptOpenJDK is one of the best places to find Prebuilt OpenJDK Binaries. Easy to follow details about how to install OpenJDK are available here.

However, the easiest way is to select OpenJDK 11 (LTS), the HotSpot JVM, and macOS x64, which will expose two option like these:

Clicking on “Install JDK installer”, will download the OpenJDK installer package, e.g. OpenJDK11U-jdk_x64_mac_hotspot_11.0.4_11.pkg, which when executed, will install into this location: /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk

Almost done. After opening a terminal, the successful installation of the JDK can be confirmed like so:

… hopefully showing something like this:

JAVA_HOME is an important environment variable and it’s important to get it right. Here is a trick that allows me to keep the environment variable current, even after a Java Update was installed. In

/.zshrc, I set the variable like so:

In previous macOS versions, this was done in

/.bash_profile. Now it’s done.

Source Code

The source code of the Java Platform, Standard Edition 11 Reference Implementations binaries is available under the GPLv2 in a single zip file.

Источник

Оцените статью