From 37cca5dbd8b74b4b4e9f802e3ca603355780e35d Mon Sep 17 00:00:00 2001 From: Chip Kent <5250374+chipkent@users.noreply.github.com> Date: Wed, 13 Dec 2023 13:45:04 -0700 Subject: [PATCH] Allow JAVA_HOME values to contain libexec and not lib. --- jpyutil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jpyutil.py b/jpyutil.py index c66223d7..0d088a69 100644 --- a/jpyutil.py +++ b/jpyutil.py @@ -140,7 +140,7 @@ def find_jdk_home_dir(): jdk_home_dir = os.environ.get(name, None) if jdk_home_dir \ and os.path.exists(os.path.join(jdk_home_dir, 'include')) \ - and os.path.exists(os.path.join(jdk_home_dir, 'lib')): + and (os.path.exists(os.path.join(jdk_home_dir, 'lib') or os.path.exists(os.path.join(jdk_home_dir, 'libexec'))): return jdk_home_dir logger.debug('Checking Maven for JAVA_HOME...') try: