Posted by chrono_legionair
on December 27, 2007 at 11:52 PM PST
I am just wondering with the following codes:
ScriptEngineManager manager = new ScriptEngineManager(loader);
ScriptEngine engine = engine.getEngineByExtension("fx");
How is the engine instantiated without first register the extension with the manager? (I think the "fx" extension does not exist out of the box?)
Is there a way to programmatically register a javafx script factory? Something like,
If so, how do I get an instance of the factory?
This may sound like a stupid question, I am just experimenting with different ways to bundle my application. It all works well when I have all the jar files (Filter, swing, javafxrt, etc...) located somewhere on the web-server that is publicly accessible.
However, when I try to do something "fancier" where I tried to write a plugin module for another application (the application has the ability to serve contents even if it is in the WEB-INF/lib directory), I get NullPointer with the engine, seems to me that for whatever reason, it is unable to "access" the javafxrt.jar file.