We can add a classloader to load JavaFX classes rather than bootclasspath, however, that's not enough to avoid relaunch.
The problem with relaunch is that we have to avoid any instantiation of UI toolkit until we know FX or AWT should be used. Current implementation use AppContext and some other toolkit specific operation without clear state boundary, and some of those are performed before we know exactly what toolkit to use. We will need to clean up those situation to totally avoid relaunch.
Posted Date : 2011-08-01 16:52:58.0