Updating java on mac codependency recovery without dating
If you are comfortable having the Java updates come down automatically, you can just tweak your next deployment package to have the auto check/install Java option enabled by default.Using the same logic, you could likely craft a smaller package that toggles auto-updates on/off as needed for machines, keeping it deactivated on production machines, testing new updates as released, then re-enabling auto-update to allow clients to do the work of pulling down the update on their own.Looks like Oracle's version of java uses the Sparkle framework, which is a software update framework used by many Mac applications.I haven't been able to find anything useful online to access Sparkle via command line. Click the Mac OS X option (near the center of the page) to download the installation file. Once downloaded, double click the file to launch the installer, then double click the package icon to launch the Install Wizard. The Install Wizard will display the Java 7 Welcome Screen. Choose the Standard Install option and have it install to your Mac system drive (Usually called Macintosh HD). Click the Close button to finish the install process. Click to run a test applet from the Oracle site to verify that your new Java Runtime Version 7 installation has installed properly.Both Apple Java 6 and Oracle Java 7 are capable of being installed silently; I’ve seen both deployed successfully as “unattended installs” (which are background installations with no user interaction) via Munki. Control Panel.main(Unknown Source)@barret55 \- its likely not working because when its run through a policy its running the command as a different user, such as your Casper service account or root, not as the logged in user. We can start simple and work up to the slightly more complicated workaround.Not sure how this applies to installation from within Casper. OS X has gotten more strict with each new release about what it allows to be run as the logged in user when its being called by another account, especially when it comes to GUI operations. You will need a full script for these, not just a single command that you can place into the Advanced Run Command section. not sure why its opening Terminal, other than it may be because the Contol Panel is an executable, not a full app.
Java seems to be the only one I haven't been able to figure out how to get to launch. Headless Exception: No X11 DISPLAY variable was set, but this program performed an operation which requires it. Graphics Environment.check Headless(Graphics Environment.java:207) at I just realized that you could also just open the Java Pref Pane from the script directly without needing the Applescript calls.I managed to get the Java control panel to open from a command prompt by using: /Library/Internet\ Plug-Ins/Java Applet Plugin.plugin/Contents/Home/bin/Control Panel However, it doesn't seem to work when doing it in a policy, either via a command or when used in a script.I'm close, but not sure why it doesn't work.Then you must open the Java DMG, then double click on the Java installer, follow the prompts and complete the installation of Java 6.Once the Java is installed, you can follow the process of installing SPSS as normal.