Ignore:
Timestamp:
2014-04-30T15:43:40+12:00 (7 years ago)
Author:
ak19
Message:

A much simpler version to find java home (default JDK) on any Mac OS found on a website. Tested on maverick, lion, leopard

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/findjava.sh

    r28799 r29010  
    7070    HINT=`cd "$GSDLHOME";pwd`/packages/jre
    7171    elif [ $GSDLOS = darwin ]; then
    72     HINT=/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home
     72    # http://java.dzone.com/articles/java-findingsetting
     73    # explains that /usr/libexec/java_home will print out the default JDK
     74    # regardless of which Mac OS we're on. Tested on Maverick, Lion, Leopard
     75    # (run `/usr/libexec/java_home -v 1.7` to find a specific version)
     76    HINT=`/usr/libexec/java_home`
     77
     78    #HINT=/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home
    7379        #/System/Library/Frameworks/JavaVM.framework/Home
    7480    fi 
Note: See TracChangeset for help on using the changeset viewer.