JavaFx deployment, wrong JDK version
Answered
Hi !
I'm trying to deploy a simple TornadoFx app and I'm using Intellij IDEA.
I've created a JavaFx artifact and get this build error :
> Error:Java FX Packager: Can't build artifact - fx:deploy is not available in this JDK
It's a known problem, JDK 11 doesn't ship with a JavaFx launcher anymore.
I've tried several things : downgrading JDK down to version 1.8, changing Kotlin target, deleting JDK 11, changing IDEA's runtime.
I still get the same error though. Any idea how I might solve this issue ?
Please sign in to leave a comment.
Hello,
We have related issue on YouTrack: https://youtrack.jetbrains.com/issue/IDEA-200721
Have you tried to set both project SDK and boot SDK (https://intellij-support.jetbrains.com/hc/en-us/articles/206544879-Selecting-the-JDK-version-the-IDE-will-run-under) to 1.8 version?
Hi,
I really can't figure out how to make it work using the 1.8 launcher. I'll just do the packaging manually, there was a very helpful link in the issue you shared.
Thanks a lot mate.
You are welcome!