openjfx 11

Answered

I'm trying to run JavaFX11 and I set my project JDK to 11 and i followed all instruction in JavaFX website but it says javac 8 was used to compile...

  • Project Structure > Project > Project SDK is set to 11.
  • JavaFX Libraries are imported.
  • Settings > Build, Execution, Deployment >Compiler > Java Compiler > Project bytecode version is set to 11.
  • Run > Edit Configuration > VM options is set to --module-path C:\Program Files\Java\OpenJDK\javafx-sdk-11.0.1\lib --add-modules=javafx.controls,javafx.fxml

Error:java: invalid target release: 11.

I don't understand what else I should do.

0
2 comments
Avatar
Permanently deleted user

PS I don't use Gradle nor Maven.

0

Hello,

Please check that module SDK is also set to JDK 11 ("Project Structure | Modules | Dependencies")

 

0

Please sign in to leave a comment.