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: