I've been using tornadofx with jdk11 using a gradl...
# tornadofx
d
I've been using tornadofx with jdk11 using a gradle build and suddenly yesterday it stopped being able to run the app in intellij or with
gradle run
. That seemed like a bug in the javafx gradle plugin -- the error message was because it was running with
--module-path
that had no arguments. I managed to solve it by downloading openjfx 11 and setting
sdk =  'javafx-sdk-11.0.2'
. Now I can build and run the app both directly via gradle and in intellij. HOWEVER, now intellij is red-underlining all javafx references because it can't find the library. How do I tell intellij where to find the javafx library so that I don't get the underlines and code completion starts working again?
Weird. I had added the lib to project settings but files were still showing red underlines so I thought I was missing something. But closing and reopening the project seems to have cleared everything up.
👍 2