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

javapackager -makeall throws "Error: JavaFx home directory is not known" even for simple hello world java application

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P5
    • Resolution: Won't Fix
    • Affects Version/s: 9
    • Fix Version/s: tbd_major
    • Component/s: deploy
    • Labels:
    • Environment:

      CLI:
      java -version
      java version "9-ea"
      Java(TM) SE Runtime Environment (build 9-ea+111-jigsaw-m3-respin-2016-03-21)
      Java HotSpot(TM) 64-Bit Server VM (build 9-ea+111-jigsaw-m3-respin-2016-03-21, mixed mode)

    • Subcomponent:
    • Introduced In Build:
      b111
    • Introduced In Version:
      9

      Description

      CLI:
      java -Xmx512M -m jdk.packager/com.sun.javafx.tools.packager.Main -
      makeall -appclass helloworld.HelloWorld
      Error: JavaFx home directory is not known.

      OBSERVATION:

      class:: com.sun.javafx.tools.packager.PackagerLib
      method::

      culprit code:: from Line no:506 to Line no: 512
      <CulpritCode>
        String jfxHome = System.getenv("JAVAFX_HOME");
              if (jfxHome == null) {
                  jfxHome = System.getProperty("javafx.home");
              }
              if (jfxHome == null) {
                  throw new PackagerException("ERR_MissingJavaFxHome");
              }
      </CulpirtCode>

      In the above code jfxHome is null.

      Please have a look at attached screenshots.

        Attachments

          Activity

            People

            • Assignee:
              cbensen Chris Bensen (Inactive)
              Reporter:
              rgangadhar Ramesh Gangadhar
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: