Fixing Areca Backup on Ubuntu 16.04 (and related distributions)

Seems like I’m at it again, this time fixing Areca Backup on Ubuntu 16.04 (actually Linux Mint 18.1 in my case). For some reason when I download the current version (Areca 7.5 for Linux/GTK) and try and run the script I get the following error: tyler@computer $ ./ ls: cannot access ‘/usr/java’: No such file or directory No valid JRE found in /usr/java. This is especially odd because I quite clearly do have Java installed: