Mac: Only in JavaFX is Desktop not supported

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • 8
    • Affects Version/s: 7u6
    • Component/s: javafx
    • None
    • Environment:

      Java version: 1.6.0_35
      JavaFX version: 2.2.0-beta-b19

      The AWT class Desktop is crucial for rich client applications to be able to interact with other applications on a computer like the user's mail application or PDF viewer. The trouble is, while the Desktop class works on my Mac, it does not when I am running a JavaFX application. I am running
      Java version: 1.6.0_35
      JavaFX version: 2.2.0-beta-b19

      and if I run this trivial program

      public class TestDesktop {
      public static void main(String... arguments) {
      System.out.println("Is desktop supported: " + Desktop.isDesktopSupported());
      }
      }

      the output is "true". However, if I do the same inside a JavaFX application, I get "false.

      Since the Desktop object has been part of Java since 1.6, the fact that JavaFX cripples it, is a bug - and, I think, a serious one too.

            Assignee:
            Anthony Petrov (Inactive)
            Reporter:
            Randahl Isaksen
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: