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

JavaFX: Move src.zip out of the lib directory

    XMLWordPrintable

    Details

    • Type: CSR
    • Status: Closed
    • Priority: P3
    • Resolution: Approved
    • Fix Version/s: openjfx17
    • Component/s: javafx
    • Labels:
      None
    • Subcomponent:
    • Compatibility Kind:
      behavioral
    • Compatibility Risk:
      low
    • Compatibility Risk Description:
      Hide
      The JavaFX Eclipse plugin expects to find src.zip in the same directory as the jar files. They will need to make a change to react to this. Similarly, developers might have their IDE configured to look for src.zip in the lib directory and will need to update their configuration when they pull down a new version of the SDK.
      Show
      The JavaFX Eclipse plugin expects to find src.zip in the same directory as the jar files. They will need to make a change to react to this. Similarly, developers might have their IDE configured to look for src.zip in the lib directory and will need to update their configuration when they pull down a new version of the SDK.
    • Interface Kind:
      Other
    • Scope:
      JDK

      Description

      Summary

      Move the src.zip file in the JavaFX SDK from the lib directory to the top directory.

      Problem

      The JavaFX SDK bundle provides a set of modular jars in the lib directory. It provides a src.zip file for use by IDEs in that same lib directory. If a developer adds the lib directory to their application's module path in the IDE, it will try to load src.zip as if it were a jar file, and will fail. This is a pain point for developers using the SDK.

      Solution

      The proposed solution is to move the src.zip file from the lib directory to the top directory of the SDK.

      Specification

      Move the src.zip file from the lib directory to the top directory of the SDK.

      Current SDK layout:

      <sdk>/
          bin/                      (Windows)
              <native libraries>    (Windows)
      
          legal/
              ...
      
          lib/
              *.jar
              src.zip
              <native libraries>    (macOS and Linux)

      New SDK layout

      <sdk>/
          bin/                      (Windows)
              <native libraries>    (Windows)
      
          legal/
              ...
      
          lib/
              *.jar
              <native libraries>    (macOS and Linux)
      
          src.zip

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kcr Kevin Rushforth
              Reporter:
              kcr Kevin Rushforth
              Reviewed By:
              Johan Vos
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: