Not supported platforms for java.awt.Desktop.getDesktop()

后端 未结 6 1048
栀梦
栀梦 2020-12-16 12:00

Since Java 6 there is a class java.awt.Desktop. There are some nice methods but the class is not supported on all platforms. The methods java.awt.Desktop.getDes

相关标签:
6条回答
  • 2020-12-16 12:22

    Well its not Supported into the Ubuntu 12.04 and its giving Error like this.

    java.lang.UnsupportedOperationException: The system tray is not supported on the current platform.
    
    0 讨论(0)
  • 2020-12-16 12:30

    On arch linux, I had to install the AUR libgnome package

    0 讨论(0)
  • 2020-12-16 12:31

    to solve it on ubuntu, run the next command:

    apt-get install libgnome2-0
    
    0 讨论(0)
  • 2020-12-16 12:38

    Works on OS X, too.

    0 讨论(0)
  • 2020-12-16 12:38

    Does not work in the current Debian (squeeze) whether in gnome or fvwm. I did not try kde.

    This bug prevents the latest version of limewire to start. The stack output is:

    FATAL ERROR!

    java.lang.ExceptionInInitializerError at com.limegroup.gnutella.gui.Initializer$6.run(Unknown Source)

    .......

    Caused by: java.lang.UnsupportedOperationException: The system tray is not supported on the current platform. at java.awt.SystemTray.getSystemTray(SystemTray.java:151)

    0 讨论(0)
  • 2020-12-16 12:44

    Quote:

    Desktop API was developed to support Windows and Gnome only

    from http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6486393

    This article however says that even Gnome support is flawed on Fedora.

    0 讨论(0)
提交回复
热议问题