RFR: 8352935: Launcher should not add $JDK/../lib to LD_LIBRARY_PATH [v2]
    Joachim Kern 
    jkern at openjdk.org
       
    Thu Apr  3 13:09:10 UTC 2025
    
    
  
> In the JDK launcher, there is a codepath which would set/modify the LD_LIBRARY_PATH. This happens unconditionally on AIX and Linux/musl and can also happen on other Linux platforms if an LD_LIBRARY_PATH is pre-set which contains a libjvm.so.
> 
> The LD_LIBRARY_PATH is set to $JVMPATH:$JDK/lib:$JDK/../lib. The last part of this, $JDK/../lib, seems to be a remnant of times when there was a jre subfolder in a JDK deployment. So it should likely be removed.
Joachim Kern has updated the pull request incrementally with one additional commit since the last revision:
  copyright years
-------------
Changes:
  - all: https://git.openjdk.org/jdk/pull/24351/files
  - new: https://git.openjdk.org/jdk/pull/24351/files/9d41d444..6f32ead9
Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=24351&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=24351&range=00-01
  Stats: 2 lines in 2 files changed: 0 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/24351.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/24351/head:pull/24351
PR: https://git.openjdk.org/jdk/pull/24351
    
    
More information about the build-dev
mailing list