I’ve found the below combination to work well for any browser Java needs. Here’s how I got it working:
Install OpenJDK
sudo apt-get install openjdk-8-jre
Install the IcedTea java browser plugin
sudo apt-get install icedtea-8-plugin
Navigate to your Chromium plugins folder
cd /usr/lib/chromium/plugins
Create a symbolic link to the IcedTea Plugin
sudo ln -s /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/IcedTeaPlugin.so
That should be it