# Ubiquiti Unifi Controller 4.11.47 and Java Runtime nightmare

- Link: https://tongfamily.com/2019/10/08/ubiquiti-unifi-controller-4-11-47-and-java-runtime-nightmare/
- Published: 2019-10-08T21:03:27-07:00
- Author: rich

Wow such a small change, such a big nightmare. The Unifi Controller is dependent
on the right Java runtime. Oracle has been constantly tightening their licensing,
making it harder and harder to just run Java. So in the last few years, Apple stopped
shipping the JRE.

So Ubiquiti took up the slack and included the Java Runtime Environment in their
Unifi.app. However in 2019, Oracle tightened up licensing up even more and Uibiquiti
can’t ship the JRE anymore. Now it looks like you again have to manually install
the JRE from the Oracle sight and click the license button.

The usual workaround is to install the JDK and there is an open JDK available via`
brew cask install adepthjdk8` which is the version 1.8 that you need. The current
default is `brew cask install java` which installs version 13.

However, it appears that the Java Application Launcher in Ubiquiti can’t find these
SDKs. You get this message, “no Java Runtimes found”. If you burrow into toto the
Unifi application at `/Applications/UniFi.app/Contents/MacOS/` and run the JavaAppLauncher,
you can see it fail to find the JRE and look for JDKs, but it doesn’t find them.

You can by the way install `brew install jenv` which manages multiple environments
and then add some magic to the `.bash_profile` to install and dynamically change
the version of java you are using. But of course this magic also doesn’t seem to
work as the Java App Launcher doesn’t seem to run .bash_profile. It might have to
be in .profile which runs at boot time to work properly.

### Share this:

 * [  Mastodon ](https://tongfamily.com/2019/10/08/ubiquiti-unifi-controller-4-11-47-and-java-runtime-nightmare/?share=mastodon)
 * [  LinkedIn ](https://tongfamily.com/2019/10/08/ubiquiti-unifi-controller-4-11-47-and-java-runtime-nightmare/?share=linkedin)
 * [  Facebook ](https://tongfamily.com/2019/10/08/ubiquiti-unifi-controller-4-11-47-and-java-runtime-nightmare/?share=facebook)
 * [  WhatsApp ](https://tongfamily.com/2019/10/08/ubiquiti-unifi-controller-4-11-47-and-java-runtime-nightmare/?share=jetpack-whatsapp)
 * [  Email ](https://tongfamily.com/2019/10/08/ubiquiti-unifi-controller-4-11-47-and-java-runtime-nightmare/?subject=%5BShared%20Post%5D%20Ubiquiti%20Unifi%20Controller%204.11.47%20and%20Java%20Runtime%20nightmare&body=https%3A%2F%2Ftongfamily.com%2F2019%2F10%2F08%2Fubiquiti-unifi-controller-4-11-47-and-java-runtime-nightmare%2F&share=email)
 * [More](https://tongfamily.com/2019/10/08/ubiquiti-unifi-controller-4-11-47-and-java-runtime-nightmare/#)

 * [  Telegram ](https://tongfamily.com/2019/10/08/ubiquiti-unifi-controller-4-11-47-and-java-runtime-nightmare/?share=telegram)
 * [  Print ](https://tongfamily.com/2019/10/08/ubiquiti-unifi-controller-4-11-47-and-java-runtime-nightmare/#print?share=print)
 * [  Pinterest ](https://tongfamily.com/2019/10/08/ubiquiti-unifi-controller-4-11-47-and-java-runtime-nightmare/?share=pinterest)
 * [  Tumblr ](https://tongfamily.com/2019/10/08/ubiquiti-unifi-controller-4-11-47-and-java-runtime-nightmare/?share=tumblr)
 * [  X ](https://tongfamily.com/2019/10/08/ubiquiti-unifi-controller-4-11-47-and-java-runtime-nightmare/?share=twitter)

### Like this:

Like Loading…
