-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Caused by: java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManagerat[Bug] A new bug #39
Comments
可以试试这里的几个方法,如果不行贴个testcase看看如何? |
我就是用的jdk11啊,切换回jdk8肯定是好了,但是我整个项目就要迁移回jdk8了,使用oracle则没有这个问题,你们阿里的easy-excel用你们的龙井JDK11也会报这个异常的 |
Caused by: java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager |
请尝试下 yum install fontconfig |
我使用的是龙井的dockers镜像的,
这怎么安装,如果我切换回oracle的jdk就不会出现这个问题了 |
alpine 安装fontconfig可以在Dockerfile添加下面的代码,但是我不确定能不能解决你的问题,可以尝试下哈 :)
|
我使用你的办法解决了这个NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager的异常,但是在使用easyExcel的情况下又出现了另一个异常
同样,使用OracleJDK也不会出现这个异常,只是会报
这个警告 |
你使用的Oracle JDK的完整版本号能方便发一下吗?($OracleJDK/bin/java -version 这个命令的输出) |
ORACLE-JDK: Dragonwell-JDK |
@yuleil 你那边有空试一下这些版本么? |
Title: Merge remote-tracking branch 'upstream/master' into jdk11 * 8277796: Bump update version for OpenJDK: jdk-11.0.15 * 8272345: macos doesn&dragonwell-project#39;t check `os::set_boot_path()` result * 8268882: C2: assert(n->outcnt() != 0 || C->top() == n || n->is_Proj()) failed: ... * 8276105: C2: Conv(D|F)2(I|L)Nodes::Ideal should handle rounding correctly * 8222825: ARM32 SIGILL issue on single core CPU (not supported PLDW instruction) * 8274265: Suspicious string concatenation in logTestUtils.inline.hpp * 8266176: -Wmaybe-uninitialized happens in libArrayIndexOutOfBoundsExceptionTest.c * 8257467: [TESTBUG] -Wdeprecated-declarations is reported at sigset() in exesigtest.c * 8263185: Mallinfo deprecated in glibc 2.33 * 8266173: -Wmaybe-uninitialized happens in jni_util.c * 8254940: AArch64: Cleanup non-product thread members * 8251558: J2DBench should support shaped and translucent windows * 8266174: -Wmisleading-indentation happens in libmlib_image sources * 8266168: -Wmaybe-uninitialized happens in check_code.c * 8208074: [TESTBUG] vmTestbase/nsk/jvmti/RedefineClasses/StressRedefineWithoutBy... * 8274523: java/lang/management/MemoryMXBean/MemoryTest.java test should handle Shenandoah * 8256373: [Windows/HiDPI] The Frame#setBounds does not work in a minimized state * Merge * 8199079: Test javax/swing/UIDefaults/6302464/bug6302464.java is unstable * ... * Merge remote-tracking branch &dragonwell-project#39;upstream/master&dragonwell-project#39; into jdk11 Link: https://code.aone.alibaba-inc.com/xcode/jdk11/codereview/8749440
The problem was resolved after changing the JDK to Oracle
The text was updated successfully, but these errors were encountered: