Skip to content

Instantly share code, notes, and snippets.

@eendeego
Created February 5, 2013 21:39
Show Gist options
  • Save eendeego/4717970 to your computer and use it in GitHub Desktop.
Save eendeego/4717970 to your computer and use it in GitHub Desktop.
Launch TopCoder Arena on OS X with Java 7/8
#!/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
@happinessnch
Copy link

It works for me, thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment