OpenJDK 11 java.lang.ClassCastException: class sun.font.CompositeFont cannot be cast to class sun.font.PhysicalFont

ぐ巨炮叔叔 提交于 2019-12-03 20:47:14

It seems OpenJDK 11 does not include some font-related stuff any more and your operating system is currently not providing any by itself.

You can try to install some font-related packages in your operating system to see if that solves the problem.

See also the release notes at https://www.oracle.com/technetwork/java/javase/11-relnote-issues-5012449.html#JDK-8191522

On Ubuntu 18.0.4 LTS, The following command fixed the issue

sudo apt-get install fontconfig

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!