Skip to content

Instantly share code, notes, and snippets.

@jacobsalmela
Created November 4, 2014 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jacobsalmela/531970d8fa1b7b9a31ef to your computer and use it in GitHub Desktop.
Save jacobsalmela/531970d8fa1b7b9a31ef to your computer and use it in GitHub Desktop.
Disable Java cache for TestNav
# Set your variable values here
bud='/usr/libexec/Plistbuddy'
plist='/Users/student/Library/Preferences/com.oracle.javadeployment.plist'
# Disable Java cache by adding or setting the plist entry
killall cfprefsd
${bud} -c "Add /com/oracle/javadeployment/:deployment.cache.enabled bool false" ${plist}
#${bud} -c "Set /com/oracle/javadeployment/:deployment.cache.enabled false" ${plist}
killall cfprefsd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment