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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P5 P5
    • tbd
    • 9
    • deploy
    • 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)

    • b111
    • 9

      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.

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

              Created:
              Updated:
              Resolved: