On the Raspberry Pi, using OpenJDK, you may experience issues attempting to connect to Twitch, Discord, or other services; or may experience an error when accessing the database. We highly recommend using Oracle Java rather than the OpenJDK flavor that is provided by default in Raspberry.
These instructions are applicable to Raspbian, they may differ for your distribution. Please look to support for your particular distribution if you need help installing Oracle Java.
apt-get install oracle-java8-jdk
update-alternatives --config java
And select the Oracle JDK as your default version.