Created
February 5, 2013 21:39
-
-
Save eendeego/4717970 to your computer and use it in GitHub Desktop.
Launch TopCoder Arena on OS X with Java 7/8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It works for me, thanks a lot.