On Fri, 18 Jun 2021 22:46:24 GMT, Alexey Semenyuk <asemen...@openjdk.org> wrote:
> GetApplicationHomeFromDll() fails if the path to libjli.so contains "bin" > component (/tmp/bin/HelloWorld/lib/runtime/lib/libjli.so). TruncatePath() > looks for "/bin/" first in "/tmp/bin/HelloWorld/lib/runtime/lib/libjli.so" > string and then it looks for "/lib/". But this is wrong order as it should > look for "/lib/" first. I.e. TruncatePath() should look for "/bin/" and then > for "/lib/" if called from GetApplicationHome() and for "/lib/" first and > then for "/bin/" if called from GetApplicationHomeFromDll(). This pull request has now been integrated. Changeset: 984003d5 Author: Alexey Semenyuk <asemen...@openjdk.org> URL: https://git.openjdk.java.net/jdk/commit/984003d5c969443abae2d889e92cba30da26e55f Stats: 65 lines in 2 files changed: 58 ins; 1 del; 6 mod 8268974: GetJREPath() JLI function fails to locate libjava.so if not standard Java launcher is used Reviewed-by: almatvee, herrick, alanb ------------- PR: https://git.openjdk.java.net/jdk/pull/4534