Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8249006

Can't not build artifacts

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: openjfx14
    • Fix Version/s: None
    • Component/s: javafx
    • Labels:
    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      windows_10

      Description

      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


        Attachments

          Activity

            People

            Assignee:
            pnarayanaswa Praveen Narayanaswamy
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: