Skip to content

Instantly share code, notes, and snippets.

@eendeego
Created February 5, 2013 21:39

Revisions

  1. eendeego created this gist Feb 5, 2013.
    17 changes: 17 additions & 0 deletions launch.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    #!/bin/bash

    cd `dirname $0`

    curl\
    --remote-name \
    --remote-header-name\
    http://www.topcoder.com/contest/arena/ContestAppletProd.jnlp

    JAVAWS="/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/javaws"

    if [ ! -x "$JAVAWS" ]; then
    # Fallback to PATH's javaws if the plugin isn't found
    JAVAWS=javaws
    fi

    "$JAVAWS" ContestAppletProd.jnlp