Setting the JVM to oracle JRE solved the problem for me. Other versions did not work.
export MATLAB_JAVA=/usr/lib/jvm/java-8-oracle/jre
If you are launching from terminal, add the line to your bashrc, if you have a matlab.desktop file, add sh -c "export MATLAB_JAVA=/usr/lib/jvm/java-8-oracle/jre; matlab -desktop;" in the exec field.

