private static void initJavaFx() {
//initialize java fx if exists
System.setProperty("javafx.macosx.embedded", "true");
try {
// Creating a JFXPanel initializes JavaFX
new JFXPanel();
Platform.setImplicitExit(false);
javaFxInit = true;
} catch (UnsatisfiedLinkError | NoClassDefFoundError | Exception e) {
//in case javafx not present
final String msg = NbBundle.getMessage(Installer.class, "Installer.errorInitJavafx.msg");