OpenJFX11 and JDK 11
Answered
Hello,
I have a multi-module Maven project and I thought this is what I need to use OpenJFX. The requires clause is not working.
What else does the IDE need ?
Thanks,
Mohan
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>11.0.1</version>
</dependency>
module layout {
requires decorator;
requires javafx.controls;
}
Please sign in to leave a comment.
Please check https://stackoverflow.com/a/52470141/104891.
I added OpenJFX as dependency and added to this to the Application template. Now this JDK 11 project compiles successfully.
But the IDE still shows requires javafx-controls in red. I haven't still added any JavaFX code..
What exact error do you see? Can you build the project from command line by Maven? Can you build the project from IDE (Build | Rebuild Project)?
Please provide a sample project to check if possible.
IDE still shows requires javafx-controls in red. The tooltip indicates that that module is not found
I can provide an exported .zip file. Where should I upload ?
You can upload it here: https://intellij-support.jetbrains.com/hc/articles/206869619.
What IDE version do you use? Does it happen in 2018.3 release?
2018.3
zip file is sent to intellij-support@jetbrains.com
In this case I had to specify the dependency on the OpenJFX Jar files. Earlier I depended on the 'jmods'.