We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37cfe64 commit b926cdcCopy full SHA for b926cdc
src/java.desktop/share/classes/java/awt/Toolkit.java
@@ -1290,8 +1290,14 @@ private static void setPlatformResources(ResourceBundle bundle) {
1290
@SuppressWarnings("restricted")
1291
static void loadLibraries() {
1292
if (!loaded) {
1293
- System.loadLibrary("awt");
1294
- loaded = true;
+ try {
+ System.loadLibrary("awt");
1295
+ loaded = true;
1296
+ } catch (UnsatisfiedLinkError e) {
1297
+ AWTError error = new AWTError("Failed to initialize the window toolkit: " + e.getMessage());
1298
+ error.initCause(e);
1299
+ throw error;
1300
+ }
1301
}
1302
1303
0 commit comments