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
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.
On arch linux, I had to install the AUR libgnome package
to solve it on ubuntu, run the next command:
apt-get install libgnome2-0
Works on OS X, too.
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)
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.