Skip to content

Commit

Permalink
Allow JAVA_HOME values to contain libexec and not lib.
Browse files Browse the repository at this point in the history
  • Loading branch information
chipkent authored Dec 13, 2023
1 parent 14b19a7 commit 37cca5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jpyutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 37cca5d

Please sign in to comment.