8260592: jpackage tests fail when Desktop is not supported

Reviewed-by: asemenyuk, herrick
This commit is contained in:
Aleksey Shipilev 2021-01-29 14:06:15 +00:00
parent d2b0ea1d01
commit 24a262124f

View File

@ -154,6 +154,12 @@ public class Hello implements OpenFilesHandler {
trace("Environment supports a display");
if (!Desktop.isDesktopSupported()) {
return null;
}
trace("Environment supports a desktop");
try {
// Disable JAB.
// Needed to suppress error: