Skip to content

Instantly share code, notes, and snippets.

@futureimperfect
Last active August 29, 2015 13:57
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 futureimperfect/9422991 to your computer and use it in GitHub Desktop.
Save futureimperfect/9422991 to your computer and use it in GitHub Desktop.
OS X Java Vendor (Oracle, Apple) One-Liner
python -c 'import os,plistlib; jv = plistlib.readPlist(os.path.join(os.path.realpath("/Library/Internet Plug-Ins/JavaAppletPlugin.plugin"), "Contents/Info.plist"))["CFBundleIdentifier"].split(".")[1]; print jv.capitalize()'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment