Could not initialize class sun.awt.Win32FontManager

1. Problem performance

RuoYi framework, verification code cannot be loaded

Insert picture description here

2. Problem analysis

1. The console reports an error

Report an error

2. View the problem

It Could not initialize class sun.awt.Win32FontManagercan be seen that it should be caused by the lack of fonts in the JDK.

Three. Solve the problem

Open the JDK, font directory C:\work\java\jdk1.8.0_131\jre\lib\fonts, and add fonts. Restart the project and solve the problem.
Insert picture description here

Four. Font attachment

Degree cloud, extraction code: b3rz

Guess you like

Origin blog.csdn.net/LitongZero/article/details/104878384