Reputation: 23
I have installed openjfx with JDK8 on Ubuntu. I am adding openjfx modules with --module-path flag. But module-path flag is missing in Java 8. I have tried using classpath but that doesn't seem to work. javac --module-path /usr/share/openjfx/lib --add-modules=javafx.base,javafx.controls,javafx.fxml,javafx.graphics,javafx.media,javafx.swing,javafx.web .java
I tried to use classpath: javac -classpath /usr/share/openjfx/lib
But I get errors like: cannot find javaFX.application.* cannot find javaFX.scene etc.
Is it possible to run openjfx with java 8? --module-path and --add-modules work fine, is there an alternative for them in java 8?
--add-modules doesn't work with classpath.
Upvotes: 1
Views: 2025