I am printing nodes using JavaFX PrinterJob, like this:

```
    /**
 * @param node
 */
public static final void print(Node node)
        throws NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException {
    Printer printer = Printer.getDefaultPrinter();
    PageLayout pageLayout = printer.createPageLayout(Paper.A4, PageOrientation.LANDSCAPE,
            Printer.MarginType.HARDWARE_MINIMUM);
    PrinterJob job = PrinterJob.createPrinterJob();

    if (job != null && job.showPrintDialog(CommonConstants.geMasterStage())) {
        boolean success = job.printPage(pageLayout, node);
        if (success) {
            job.endJob();

        }
    }
}

```

Which works fine on windows, But, `Printer.getDefaultPrinter();` is always null on mac,, so i made sure that the printer is available, which it is, and `Printer.getAllPrinters()` returns empty array.

It is good to note that `java.awt.print.PrinterJob.getPrinterJob()` works fine on both windows and mac. 

what is the issue or what i am doing wrong ?