Installing Java SE 6 runtime without admin password.

catesr
Contributor

I work for a school district which uses JAMF's Casper suite to manage our Macs. We recently received a new shipment of mbp's which have been updated to 10.8.4. With Casper we are able to push out software packages without any end user involvement. This is especially convenient so we don't have to input the admin password with each install. We use a couple of Java based applications as well as Java enabled web sites for education. Problem is I can install JDK 7 Update 25.pkg which takes care of viewing webistes but when I attempt to open our Java desktop apps it asks if I want to install Java SE 6 runtime which requires an admin password. I've tried installing Java 6 from Apple's download page but when I attempt installing it says I must be running 10.6.x. Is there any way of installing runtime without an admin password and where might I find the runtime package. Sorry for the lengthy explanation. Thanks.

3 REPLIES 3

m_entholzner
Contributor III
Contributor III

There's a Java 6 package for 10.8 too. See the link here:

http://support.apple.com/kb/DL1572?viewlocale=en_US

You can deliver this package via policy or however you like :)

rtrouton
Release Candidate Programs Tester

I have a script that may work for you. It will need to be run with admin privileges, but that's what Casper should handle.

https://github.com/rtrouton/rtrouton_scripts/tree/master/rtrouton_scripts/install_apple_java_on_dema...

Since you don't already have Java 6 installed, I recommend removing the first java -version check for two reasons:

  1. You know Java's not installed.
  2. Running java -version without Java 6 installed will trigger the dialog window that asks you if you want to install Java.

catesr
Contributor

Thanks to both of you for your suggestions. I will try them first thing Monday. :-)