Skip to content

Instantly share code, notes, and snippets.

@iokill

iokill/start_mocca.sh Secret

Created Jan 4, 2013
Embed
What would you like to do?
Workaround to run MOCCA (http://webstart.buergerkarte.at/mocca/) on OS X after installing the latest Java update from Apple. NOTE: This script uses the "old" (probably outdated and insecure) Java 1.6 provided by Apple.
#!/bin/bash
curl -o mocca.jnlp "http://webstart.buergerkarte.at/mocca/webstart/mocca.jnlp"
/Library/Java/Home/bin/java -classpath /Library/Java/Home/lib/deploy.jar -Djava.security.policy=file:/Library/Java/Home/lib/security/javaws.policy -DtrustProxy=true -Xverify:remote -Djnlpx.home=/Library/Java/Home/bin -Djnlpx.origFilenameArg=mocca.jnlp -Djnlpx.remove=false -Dsun.awt.warmup=true -Xbootclasspath/a:/Library/Java/Home/lib/javaws.jar:/Library/Java/Home/lib/deploy.jar:/Library/Java/Home/lib/plugin.jar -d32 -Xdock:name=MOCCA -Dmacosx.jnlpx.dock.name=MOCCA -Xdock:icon=/Library/Java/Home/lib/deploy/webStartAppIcon.icns -Dmacosx.jnlpx.dock.icon=/Library/Java/Home/lib/deploy/webStartAppIcon.icns -splash:/Library/Java/Home/lib/deploy/splash.gif -Djnlpx.jvm="/Library/Java/Home/bin/java" -Djnlpx.vmargs=-d32 com.sun.javaws.Main -verbose mocca.jnlp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.