Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SystemTray not supported on Windows 10

With Java 8 sdk, when I do

if (SystemTray.isSupported()) {
   logger.error("SystemTray IS supported");
} else {
    logger.error("SystemTray IS NOT supported");
}

Why SystemTray is not supported on Windows 10 ?

And what can I do to make it supported ?

Thanks

like image 314
psv Avatar asked Dec 14 '22 00:12

psv


1 Answers

You can set headless property from code too:

System.setProperty("java.awt.headless", "false");
like image 112
igazl Avatar answered Dec 27 '22 05:12

igazl