The system tray is not supported on the current platform?
问题 I'm trying to make a System Tray application on Ubuntu 18.04 using Java. This is the code that I'm executing: import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class App { static{ System.setProperty("java.awt.headless", "false"); } public static void main(String[] args) { // if(!SystemTray.isSupported()){ // System.out.println("System Tray is not supported."); // return; // } final PopupMenu popup = new PopupMenu(); Image img = Toolkit