A DESCRIPTION OF THE PROBLEM :
When I try to build an artifact in my IDE (IntelliJ IDEA), this error occurs:
Error: Java FX Packager: Can't build artifact - fx:deploy is not available in this JDK
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Start the IDE (IntelliJ IDEA)
Create a new JavaFX Project
Install the latest JavaFX SDK from: https://gluonhq.com/products/javafx/
Add the JavaFX 14 lib folder to Libraries in the IDE (IntelliJ IDEA)
Add the VM-Options:
--module-path \path\to\javafx\lib --add-modules = javafx.controls,javafx.fxml
Create new JavaFX artifact
Build the artifact
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The artifact should be created without errors (as was the case in Java 8)
ACTUAL -
An error message appears when creating an artifact
---------- BEGIN SOURCE ----------
package sample;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class Main extends Application {
@Override
public void start(Stage primaryStage) throws Exception {
Parent root = FXMLLoader.load(getClass().getResource("sample.fxml"));
primaryStage.setTitle("Hello World");
primaryStage.setScene(new Scene(root, 300, 275));
primaryStage.show();
}
public static void main(String[] args) {
launch(args);
}
}
---------- END SOURCE ----------
FREQUENCY : always
When I try to build an artifact in my IDE (IntelliJ IDEA), this error occurs:
Error: Java FX Packager: Can't build artifact - fx:deploy is not available in this JDK
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Start the IDE (IntelliJ IDEA)
Create a new JavaFX Project
Install the latest JavaFX SDK from: https://gluonhq.com/products/javafx/
Add the JavaFX 14 lib folder to Libraries in the IDE (IntelliJ IDEA)
Add the VM-Options:
--module-path \path\to\javafx\lib --add-modules = javafx.controls,javafx.fxml
Create new JavaFX artifact
Build the artifact
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The artifact should be created without errors (as was the case in Java 8)
ACTUAL -
An error message appears when creating an artifact
---------- BEGIN SOURCE ----------
package sample;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class Main extends Application {
@Override
public void start(Stage primaryStage) throws Exception {
Parent root = FXMLLoader.load(getClass().getResource("sample.fxml"));
primaryStage.setTitle("Hello World");
primaryStage.setScene(new Scene(root, 300, 275));
primaryStage.show();
}
public static void main(String[] args) {
launch(args);
}
}
---------- END SOURCE ----------
FREQUENCY : always