Using javafx from a URLClassLoader?
I'm a java developer and the application I'm currently working on has the ability to load extensions. This week I've been trying to make a scripting extension allowing the user to load javafx scripts and execute them.
The first problem I encountered was that the javafx engine was not available through the jsr-223 ScriptEngineManager. The reason for this seemed to be that the application loads up extra jars using a URLClassLoader. When I specified the correct classloader, the manager was able to find the javafx scripting engine.
The next problem which I haven't been able to solve is that the javafx library (all the .fx files in the javafxrt.jar) don't seem to be available! When executing the simple HelloWorld.fx script, I get the message that "Frame" is undefined. I was wondering if anyone here could give me some insight on this?