Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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.getDesktop() throws an

java.lang.UnsupportedOperationException: Desktop API is not supported on the current platform

on some platforms. Or the method java.awt.Desktop.isDesktopSupported() return false.

I know that it work on Windows XP, Windows 2003 and also Windows Vista. The question is on which platform is it not supported?

like image 902
Horcrux7 Avatar asked Sep 19 '08 14:09

Horcrux7


2 Answers

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.

like image 141
Ilya Kochetov Avatar answered Oct 12 '22 23:10

Ilya Kochetov


Works on OS X, too.

like image 41
Mot Avatar answered Oct 12 '22 23:10

Mot