fxlauncher question here (hope that's Ok under tor...
# tornadofx
d
fxlauncher question here (hope that's Ok under tornadofx...): I want to use fxlauncher to drive javapackager and create an installer; but I don't want to have updates hosted at a particular URL, at least not during development. However, fxlauncher appears to be so focused on its update function that the Url is mandatory: plugin refuses to run without an applicationUrl. Can I turn off the update part of it?
a
If I am not wrong, fxlauncher is obsolete and you should use jlink now.
oh, sorry, confused it with fx packager
d
Isn't jlink Java 9+ only? I'm (reluctantly) using JDK8 because Ktor is not Java 9 compatible at present.
a
It is. Ktor should be fully compatible with modern JDK. You are probably talking about tornadofx which is not. Yet. See previous discussion.
d
(See issue I shared in #tornadofx main channel)
As far as I can see, and have tried, Ktor is fundamentally incompatible with JDK 9+, it's a bad situation.
a
It is compatible with jdk 9+. The error is about jlink and split packages. So it will (and does) work perfectly fine unless you want to create a stand-alone distribution.
d
Or I should say; incompatible with JavaFX 11. You say that, but have you tried it? I have.
JavaFX 11 requires the use of modules.
Ktor does not work with modules.
As soon as you enable modules, you will get split package issues due to the replications of packages across the various artifacts.
a
No, it does not unless you use jlink. And even in that case there are ways around it with default package.
You can use java 11+ without module-info descriptor.
d
...but still load JavaFX modules with add-module?
I thought modules mechanism is all or nothing.
a
yes.
d
I still got unable to load JavaFX runtime, even when modules are loaded and OpenJFX 11 dependencies are specified. With your assertion that it can work, I will give another try.
a
there is a middle ground - default module. Your application could import modules without descriptor and split-package problem. But alas, in that case, no jlink
d
Right. Is there an alternative to JLink to get a distribution from JavaFX 11 - I guess javapackager will still work?
via something like FibreFox plugin or fxlauncher from tornado?
a
I've got a working example working both for Java 11 and java 8: https://github.com/altavir/fx-demo
d
Thanks, it's helpful just to have you tell me that it can work.
I wanted to take the leap to 11, but hit so many issues, I was forced back into reliable 8 land.
GTG but I will try it later.
a
I also managed to pack tornadofx application with jlink by avoiding places where tornado uses nasty hacks. It is in a closed repo, but I can give you configuration
It actually packs down to about 30-40 Mb