[jdk11u-dev] RFR: 8268974: GetJREPath() JLI function fails to locate libjava.so if not standard Java launcher is used

Yuri Nesterenko yan at openjdk.org
Wed Mar 13 07:45:15 UTC 2024


On Thu, 29 Feb 2024 11:02:01 GMT, Sergey Nazarkin <snazarki at openjdk.org> wrote:

> I'd like to backport this changes as it fixes some custom launchers issue.  The backport is not clean:
> 1. [8234821](https://bugs.openjdk.org/browse/JDK-8234821) was not backported to jdk11, so *java_md_common.c* need manual adjusting.
> 2. The test can't be started as it depends on whole jpackage test [pack](https://bugs.openjdk.org/browse/JDK-8268974). So I've removed it.
> 
> The functionality was tested with simple 
> 
> cd ~/tools/bin
> cp -r ~/jdk .
> cp jdk/bin/java jdk/lib
> jdk/lib/java -version
> 
> 
> Without the patch it show the error
> 
>        Error: could not find libjava.so
>        Error: Could not find Java SE Runtime Environment.
> 
> 
> jdk_tier2 is OK as well

Marked as reviewed by yan (Reviewer).

-------------

PR Review: https://git.openjdk.org/jdk11u-dev/pull/2578#pullrequestreview-1933354254


More information about the jdk-updates-dev mailing list