diff --git a/files/java.sh b/files/java.sh index 6a9af7e..67606b7 100755 --- a/files/java.sh +++ b/files/java.sh @@ -3,6 +3,10 @@ # Invoke java with the $DYLD_LIBRARY_PATH set with the homebrew lib dir. # This allows java to load native libraries installed via homebrew. +if [ -z "$DYLD_FALLBACK_LIBRARY_PATH" ]; then + DYLD_FALLBACK_LIBRARY_PATH="$HOME/lib:/usr/local/lib:/lib:/usr/lib" +fi + export DYLD_FALLBACK_LIBRARY_PATH="$BOXEN_HOME/homebrew/lib:$DYLD_FALLBACK_LIBRARY_PATH" if [ -x /usr/libexec/java_home ]; then