I want run JavaFX application with module but dont know how to do. I tried several times but i never got it. I use Eclipse, and export the proyect with the first selected option.
module MiProgramaInterfaz {
requires javafx.controls;
requires javafx.fxml;
requires java.xml;
requires javafx.base;
opens controlador to javafx.graphics, javafx.fxml, javafx.base;
opens modelo.clases to javafx.graphics, javafx.fxml, javafx.base;
opens principal to javafx.graphics, javafx.fxml, javafx.base;
}
The last command i tried was this
java -p app.jar -m MiProgramaInterfaz/principal.Main
but i got this error:
Error occurred during initialization of boot layer
java.lang.module.FindException: Module javafx.fxml not found, required by MiProgramaInterfaz
I tried steps from https://openjfx.io/openjfx-docs/#install-javafx but nothing