Skip to content

Commit 1e30ba7

Browse files
author
Daniel Sutton
committed
Update find_java_libdir.sh to support new directory layout on mac
1 parent 795fdf1 commit 1e30ba7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

find_java_libdir.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ main () {
4747
target_arch=`uname -m`
4848
if [[ -d ${jre_dir}/${target_arch}/classic ]]; then lib_dir="${jre_dir}"/${target_arch}/classic; else lib_dir="${jre_dir}"/${target_arch}/server; fi
4949
elif [[ "${os}" == "mac" ]]; then
50-
lib_dir="${jre_dir}/jli"
50+
if [[ -f ${jre_dir}/jli/libjli.dylib ]]; then lib_dir="${jre_dir}"/jli; else lib_dir="${jre_dir}"; fi
5151
else
5252
local arch
5353
if [[ "${target_arch}" =~ (32|386) ]]; then

0 commit comments

Comments
 (0)