Support Downloads Community

UniFi Video is an obsolete product line.

This application and its related devices will no longer receive any manner of technical support, including functional and security updates. Additionally, there will be no further updates to Help Center content pertaining to UniFi Video.

UniFi - How to Configure the Network application hosted on Debian/Ubuntu to use Oracle Java


This article will guide those administrators who are using the UniFi Network application on a Debian/Ubuntu server and want to use Oracle Java instead of the default OpenJDK. It will also explain when UniFi needs to be re-configured.

Configuration Steps

Back to Top

NOTE: The recommended method to install Java to avoid any issue with version detection by UniFi is by using the JavaPackage tool as explained and outlined in thisDebian documentation. Installing properly via this method should require no configuration using the UniFi Network application.

If Oracle Java is installed with a method different than the one described in the Debian documentation linked above, you will need to configure UniFi to work properly. This configuration should be persistent across upgrades of UniFi Network so will only need to be done once. 

To do this, define the JAVA_HOME location on your Debian/Ubuntu server and input this command:

User Tip:This will vary based on version; change JAVA_HOME path as needed.
echo "JAVA_HOME=/usr/lib/jvm/java-8-oracle" | sudo tee -a /etc/default/unifi

Related Articles

Back to Top

UniFi - How to Install & Update via APT on Debian or Ubuntu

Was this article helpful?
34 out of 61 found this helpful