Greenfoot Admin

Installation

  1. Download the latest Greenfoot installation jarfile. It will be of the form:

    
    Greenfoot-generic-230.jar
    
    

  2. On the distribution server, run the Greenfoot installation jarfile:

    
    [lethe] util% sudo /util/bin/java -jar Greenfoot-generic-230.jar
    
    

  3. The GUI will prompt you to select an installation directory. Make it of the form:

    
    /util/greenfoot-2.3.0
    
    

  4. Minimally modify the greenfoot Bourne shell script so it will launch appropriately on servers that mount CSE's /util volume at differently-named mount points:
    
    [lethe] ~% cd /util/greenfoot-2.3.0/
    [lethe] greenfoot-2.3.0% sudo vi greenfoot
    
    #!/bin/sh
    
    DOMAIN=`hostname -d`
    
    case "$DOMAIN" in
    'cse.buffalo.edu')
       ROOT="/util"
    ;;
    'eng.buffalo.edu')
       ROOT="/util-cse"
    ;;
    'public.buffalo.edu')
       ROOT="/util-cse"
    ;;
    *)
       ROOT="/UNKNOWN_ROOT"
    ;;
    esac
    
    APPBASE="$ROOT/greenfoot-2.3.0"
    JAVAPATH="$ROOT/java/jdk1.7.0_25"
    CP="$APPBASE/lib/bluej.jar:$JAVAPATH/lib/tools.jar"
    "$JAVAPATH/bin/java" -cp "$CP" bluej.Boot -greenfoot=true -bluej.compiler.showunchecked=false "$@"
    
    
  5. Make this installation the new default greenfoot:

    
    [lethe] ~% cd /util
    [lethe] /util% sudo rm greenfoot
    [lethe] /util% sudo ln -s greenfoot-2.3.0 greenfoot