https://bugzilla.novell.com/show_bug.cgi?id=683751 https://bugzilla.novell.com/show_bug.cgi?id=683751#c3 Michal Vyskocil <mvyskocil@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |johannes.mueller@troeber.co | |m --- Comment #3 from Michal Vyskocil <mvyskocil@novell.com> 2011-03-31 12:12:34 UTC --- As far I understood the underlying code (quite complicated due a lot of abstract classes and native glue) I suppose the desktop support in Java is done directly by dlopen of libgnome-2.so.0 and libgnomevfs-2.so. When dlopen calls fails, the safe HeadlessToolkit is instantiated. And is always returns false on isDesktopSupported (which btw have to be called before getDesktop ;-). Can you post me the output of this program? public class d { public static void main(String[] args) { System.out.println("awt.toolkit: " + System.getProperty("awt.toolkit")); //, "sun.awt.X11.XToolkit"); java.awt.Toolkit defaultToolkit = java.awt.Toolkit.getDefaultToolkit(); System.out.println(defaultToolkit); if (defaultToolkit instanceof sun.awt.SunToolkit) { //return ((sun.awt.SunToolkit)defaultToolkit).isDesktopSupported(); System.out.println("Toolkit is instance of sun.awt.SunToolkit"); } if (defaultToolkit instanceof sun.awt.HeadlessToolkit) { System.out.println("Toolkit is instance of sun.awt.HeadlessToolkit"); } if (java.awt.Desktop.isDesktopSupported()) { System.out.println("Desktop is supported"); } } } and of course the output of strace -f -eopen java d 2>&1 | grep libgnome if I see if my assumptions are correct. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.