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

Gradle openZip task does not support JDK9 layout

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P5
    • Resolution: Fixed
    • Affects Version/s: 8u60
    • Fix Version/s: 9
    • Component/s: javafx
    • Subcomponent:
    • CPU:
      x86
    • OS:
      linux

      Description

      FULL PRODUCT VERSION :
      java version "1.8.0_60"
      Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
      Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)


      ADDITIONAL OS VERSION INFORMATION :
      Linux chris 3.2.0-4-amd64 #1 SMP Debian 3.2.68-1+deb7u3 x86_64 GNU/Linux

      A DESCRIPTION OF THE PROBLEM :
      The gradle "openZip" task assumes that the OpenJFX build will be unzipped over a pre-Jigsaw JRE layout.
      When you try this with a post-Jigsaw build of OpenJDK the "jre" directory does not exist and OpenJFX is not correctly installed into OpenJDK.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Build OpenJFX using gradle openZip
      Try to unzip the resulting build into JDK9

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The jars and native libs inside the zip are put in the right places.
      ACTUAL -
      Unzipping the openzip OpenJFX "overlay" creates jre directories inside JDK9 which is incorrect. JDK9 will not look in here for the JavaFX jars and libraries.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      chris@chris:~/jdk9dev/build/linux-x86_64-normal-server-release/jdk$ unzip openjfx-8u40-sdk-overlay-linux-amd64.zip
      Archive: openjfx-8u40-sdk-overlay-linux-amd64.zip
        inflating: lib/javafx-mx.jar
        inflating: lib/packager.jar
        inflating: lib/ant-javafx.jar
        inflating: bin/javapackager
        inflating: bin/javafxpackager
         creating: man/
         creating: man/ja_JP.UTF-8/
         creating: man/ja_JP.UTF-8/man1/
        inflating: man/ja_JP.UTF-8/man1/javafxpackager.1
        inflating: man/ja_JP.UTF-8/man1/javapackager.1
         creating: man/man1/
        inflating: man/man1/javafxpackager.1
        inflating: man/man1/javapackager.1
         creating: jre/
         creating: jre/lib/
        inflating: jre/lib/javafx.properties
        inflating: jre/lib/jfxswt.jar
         creating: jre/lib/ext/
        inflating: jre/lib/ext/jfxrt.jar
         creating: jre/lib/amd64/
        inflating: jre/lib/amd64/libprism_sw.so
        inflating: jre/lib/amd64/libavplugin-54.so
        inflating: jre/lib/amd64/libdecora_sse.so
        inflating: jre/lib/amd64/libjavafx_font_pango.so
        inflating: jre/lib/amd64/libprism_common.so
        inflating: jre/lib/amd64/libfxplugins.so
        inflating: jre/lib/amd64/libjavafx_font_freetype.so
        inflating: jre/lib/amd64/libprism_es2.so
        inflating: jre/lib/amd64/libgstreamer-lite.so
        inflating: jre/lib/amd64/libjfxwebkit.so
        inflating: jre/lib/amd64/libjavafx_font.so
        inflating: jre/lib/amd64/libglass.so
        inflating: jre/lib/amd64/libjfxmedia.so
        inflating: jre/lib/amd64/libjavafx_iio.so
        inflating: jre/lib/amd64/libavplugin-53.so

      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      Manually copy the jars and libraries into the correct locations inside JDK9.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kcr Kevin Rushforth
                Reporter:
                webbuggrp Webbug Group
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: