Programmatically invoking a JavaFx Script
I am running into issues when I try and run the second example in http://jfx.wikia.com/wiki/Programmatically_invoking_a_JavaFX_Script
in the compiled version of JavaFX.
The error I am getting is a NullPointerException error on this line:
InputStreamReader reader = new InputStreamReader(FxScriptLauncher.class.getResourceAsStream("HelloWorld.fx"));
I know it probably has to do with the location of the fx file, but the fx file is in the same directory as java file that I am trying to run.