You don't need to fix this.
sun.awt.resources.spi.awtProvider
is a class name that is automatically generated as a possible resource bundle provider. If the class is not found it will be ignored.
See the source at https://github.com/openjdk/jdk11u/blob/master/src/java.desktop/share/classes/java/awt/Toolkit.java#L1416:
try {
resources = ResourceBundle.getBundle("sun.awt.resources.awt");
} catch (MissingResourceException e) {
// No resource file; defaults will be used.
}
accessibility.properties
is an optional file that can be used to configure assistive technologies. If this file is not found nothing changes.
According to the sources at https://github.com/openjdk/jdk11u/blob/master/src/java.desktop/share/classes/java/awt/Toolkit.java#L423:
try {
File propsFile = new File(
System.getProperty("java.home") + sep + "conf" +
sep + "accessibility.properties");
FileInputStream in =
new FileInputStream(propsFile);
// Inputstream has been buffered in Properties class
properties.load(in);
in.close();
} catch (Exception e) {
// System-wide accessibility properties file does
// not exist;
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…