Java System Tray Question.

Mike A mlnx at mho.com
Thu Oct 29 17:52:17 UTC 2009


Hi

I am running Ubuntu 9.04 and Java 1.6.0_0.  I tried to run a Java app 
that uses the System Tray (Notification bar) on Gnome. It failed. I 
wrote the following simple test.

----------------------------
package myapp;
import java.awt.*;

public class Main {

    public static void main(String[] args) {
        if (SystemTray.isSupported()) {
            System.out.println("It is supported!");
        } else {
            System.out.println("It is not supported!");
        }
    }
}

-----------------------------------
It returned "It is not supported!"
Anybody know what is wrong?

Mike






More information about the ubuntu-users mailing list