As a note about this post: https://stackoverflow.com/questions/77542362 Loading Charset are only allowed at the System Classloader. Usage of the -Xbootclasspath helps in our case. See: https://bugs.openjdk.org/browse/JDK-4619777 https://hg.openjdk.org/jdk8u/jdk8u/jdk/file/7bdd8c20b8b3/src/share/classes/java/nio/charset/Charset.java#l340 https://github.com/openjdk/jdk/blob/master/src/java.base/share/classes/java/nio/charset/Charset.java#L355