I'm trying to run a javafx application using a "login preloader".
My question is, how do I test everything without creating the final jars.
Can I run a command (such as java -cp . app.my.Main) and show it works ?
In a future release of the jdk, it won't be necessary to add jfxrt.jar to the classpath, but for now (jdk7u6) it is.
Note, that the above usage is probably only useful during development, for deployment of apps to users, you are better off having them appropriately packaged using the JavaFX packaging tools.
Ok, this works for launching application, but the preloader does not show up ...
My problem is testing my preloader.
In fact i have 2 issues :
- Starting the full application (application + preloader) (NetBeans 7.2 works fine, for it, but I want be able to test the program without NetBeans)
- Is there a way to manually start the Preloader (for test purpose) and send change notification (event) to the preloader.
Actually, using JavaFX 2.2, it's possible to use this code to start the application : com.sun.javafx.application.LauncherImpl.launchApplication(Main.class, Preloader.class, args); instead of Application.launch(args).
Looks like JavaFX 8.0 use launchApplicationWithArgs ...