F
F
freelancer5102019-12-09 23:15:09
Java
freelancer510, 2019-12-09 23:15:09

Can't understand why module javafx.base not found in intellij idea?

Hello
Question
Here I registered in VM options this:

--module-path
"Users\USER\IdeaProjects\Graph\openjfx-11.0.2_windows-x64_bin-sdk\lib"
--add-modules=javafx.controls,javafx.fxml,javafx.base

Gives only this error
Error occurred during initialization of boot layer
java.lang.module.FindException: Module javafx.base not found

Process finished with exit code 1

As I understand it, intellij idea does not see my library folder, although everything is connected
5deeaaf65865e068503591.png
Please help. How to solve this problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
alivedeath, 2020-06-03
@alivedeath

The problem is in the parameters passed to the virtual machine. For IntelliJ IDEA, the current options can be found at https://www.jetbrains.com/help/idea/javafx.html .
For example, I have the following:

--module-path
C:\Users\[Имя пользователя]\javafx-sdk-11.0.2\lib
--add-modules
javafx.controls,javafx.fxml
--add-exports
javafx.graphics/com.sun.javafx.sg.prism=ALL-UNNAMED

J
JeffNucleusT, 2020-09-08
@JeffNucleusT

Finally I've got a solution to my problem, since 4 days of searching
Thanks enough

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question