Posted on 06-08-2016 09:16 AM
what are some of the ways JAMF nation Casper admins create Java pkg for installation ?
Java8u91 comes as a .dmg and then mounts as a .app - that says 'Double-click on icon to install'
are you using composer? the .app ?
Solved! Go to Solution.
Posted on 06-08-2016 09:46 AM
Go inside the contents of the .app to get the package. Drop into Casper Admin.
https://jamfnation.jamfsoftware.com/discussion.html?id=17507
Posted on 06-08-2016 09:27 AM
Autopkg.
If you want to see the manual process @rtrouton has a good blog post for a previous version, you can see if that info still applies: https://derflounder.wordpress.com/2015/10/20/oracles-java-8-update-65-the-return-of-the-java-install...
Posted on 06-08-2016 09:46 AM
Go inside the contents of the .app to get the package. Drop into Casper Admin.
https://jamfnation.jamfsoftware.com/discussion.html?id=17507
Posted on 06-08-2016 10:08 AM
ok, I right clicked the .app and /contents/Resources and dragged the JavaAppletPlugin.pkg to desktop
@mvu I checked out the link @Josh.Smith provided, based on the information provided from reading that link, after java installs the JavaAppletPlugin.pkg via Casper Policy, the application will prompt for admin privileges before fully launching and a few other user needed input. Going to check this out.
hope this is not still happening.
Posted on 06-08-2016 10:10 AM
Definitely look at AutoPKG(r)
You can get the sfw in many formats, and it's a piece of cake to get the latest versions.
Posted on 06-08-2016 10:21 AM
@tcandela I think the portion of Rich's post you are referring to (about the elevation prompt) is for the .app...not the .pkg:
Now that the good news is covered, let’s talk about the install application. Oracle’s Java 8 Update 65 install application has the following behavior: This application will prompt for admin privileges before fully launching.
Posted on 06-08-2016 10:28 AM
@Josh.Smith oh, ok. Going to be testing the .pkg pulled from /path/to/install.app/Contents/Resources/JavaAppletPlugin.pkg soon
Posted on 06-08-2016 10:31 AM
Has anyone suggested AutoPKG yet? ;)
Seriously, it is worth the price of admission just for Java and Flash updates.
(that's a joke, since the "price" = "Free".
Posted on 06-08-2016 10:34 AM
I packaged Java 8 Update 92 yesterday for a manual ARD deployment with everything dumped into an Iceberg package. It's not the casper way of doing it but there may be stuff in here that will be of use to you. I'll try to post the config files below.
Posted on 06-08-2016 10:37 AM
sudo installer -dumplog -verbose -pkg "$1/Contents/Resources/JavaAppletPlugin.pkg" -target /
sudo mkdir -pv -m 755 "/Library/Application Support/Oracle/Java/Deployment"
sudo chown root:admin "/Library/Application Support/Oracle/Java/Deployment/"
sudo cp -R "$1/Contents/Resources/deployment.config" "/Library/Application Support/Oracle/Java/Deployment/"
sudo cp -R "$1/Contents/Resources/deployment.properties" "/Library/Application Support/Oracle/Java/Deployment/"
sudo cp -R "$1/Contents/Resources/exception.sites" "/Library/Application Support/Oracle/Java/Deployment/"
sudo chown root:admin "/Library/Application Support/Oracle/Java/Deployment/deployment.config"
sudo chown root:admin "/Library/Application Support/Oracle/Java/Deployment/deployment.properties"
sudo chown root:admin "/Library/Application Support/Oracle/Java/Deployment/exception.sites"
sudo chmod 755 "/Library/Application Support/Oracle/Java/Deployment/deployment.config"
sudo chmod 755 "/Library/Application Support/Oracle/Java/Deployment/deployment.properties"
sudo chmod 755 "/Library/Application Support/Oracle/Java/Deployment/exception.sites"
sudo defaults write /Library/Preferences/com.oracle.java.Java-Updater JavaAutoUpdateEnabled -bool false
sudo defaults write "/System/Library/User Template/English.lproj/Library/Application Support/JREInstaller/ThirdParty" SPONSORS -string "0"
exit 0
Posted on 06-08-2016 10:42 AM
The Deployment.Config File
deployment.system.config="file:///Library/Application Support/Oracle/Java/Deployment/deployment.properties"
deployment.system.config.mandatory=false
Posted on 06-08-2016 10:51 AM
I'm sorry about the formatting, the hashes in the files code are making the text in the post huge.
The Deployment.Properties File
deployment.webjava.enabled=true
deployment.webjava.enabled.locked
deployment.security.level=HIGH
deployment.security.level.locked
deployment.user.security.exception.sites=/Library/Application Support/Oracle/Java/Deployment/exception.sites
deployment.trace=false
deployment.log=false
deployment.javapi.lifecycle.exception=false
deployment.console.startup.mode=HIDE
deployment.javaws.shortcut=NEVER
deployment.javaws.associations=ASK_USER
deployment.javaws.install=IF_HINT
deployment.security.askgrantdialog.show=true
deployment.security.sandbox.awtwarningwindow=false
deployment.security.sandbox.jnlp.enhanced=true
deployment.security.clientauth.keystore.auto=true
deployment.security.jsse.hostmismatch.warning=true
deployment.security.https.warning.show=false
deployment.security.mixcode=HIDE_RUN
deployment.security.revocation.check=ALL_CERTIFICATES
deployment.security.validation.ocsp=true
deployment.security.validation.crl=true
deployment.security.tls.revocation.check=ALL_CERTIFICATES
deployment.security.tls.validation.ocsp=true
deployment.security.tls.validation.crl=true
deployment.security.browser.keystore.use=true
deployment.security.blacklist.check=true
deployment.security.password.cache=true
deployment.security.SSLv2Hello=false
deployment.security.TLSv1=true
deployment.security.TLSv1.1=true
deployment.security.TLSv1.2=true
deployment.system.tray.icon=false
deployment.insecure.jres=NEVER
deployment.javaws.autodownload=NEVER
deployment.expiration.check.enabled=false
Posted on 06-08-2016 10:52 AM
oh, i didn't see 8u92
Posted on 06-08-2016 10:54 AM
Exception.Sites File
Just a plain text file with a list of https addresses in it. Only needed if you want to control approved websites to run Rich Internet Applications (JAR files etc.) without them being blocked.
https://www.google.com
Posted on 06-08-2016 10:59 AM
Orcale release 2 versions at the same time. Why? I don't know. O_o? Theres a "mandatory bug fix" version 91 and a "mandatory + extra bugs fixed" version 92. You can get both of them here:
Java 8 SE (Standard Edition)
http://www.oracle.com/technetwork/java/javase/downloads/index.html
This is where I usually get them instead of Java.com <- That site for the public.
Posted on 06-08-2016 11:00 AM
@Taylor.Armstrong - I think so, but then again, I don't see any acknowledgement. Maybe we're using invisible fonts? :)
Just in case: .- ..- - --- .--. -.- --. .-.
Has anyone suggested AutoPKG yet? ;) Seriously, it is worth the price of admission just for Java and Flash updates. (that's a joke, since the "price" = "Free".
Posted on 06-08-2016 11:03 AM
@maxvre One release is CPU, one is PSU. Some links below for reference.
"Which Java version should I choose: the CPU or the PSU?
Oracle strongly recommends that all Java SE users upgrade to the latest CPU release available for a release family. Most users should choose the CPU release.
Users should only use the corresponding PSU release if they are being impacted by one of the additional bugs fixed in that version as noted in the release notes."
http://www.oracle.com/technetwork/java/javase/cpu-psu-explained-2331472.html
https://www.java.com/en/download/faq/release_dates.xml
Posted on 06-08-2016 11:10 AM
The deployment.properties file above may be overkill for what you want to do but it lets me configure every setting in the advanced tab of the Java control panel.
Any setting you don't want locked, just put a hash in front of the "locked" line and it will be ignored.
Also note! in the postflight script the default write command for
"Disable Sponsor offers during install or updating of Java"
This setting isn't available in the deployment.properties file and has to be set by a default write command. Why? Bad programming on oracles part. I've seen people posting on the net variations of the setting that gets created in the users home directory deployment.properties file when you tick the box manually but none of them worked for me. Only this default write command ticked the box for me in the Java control panel. Tested it in a clean VM to make sure.
Posted on 06-08-2016 11:11 AM
I grabbed my 8u92 from here
http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html
Posted on 06-08-2016 11:13 AM
@CasperSally If in doubt, go with version 91 Sally. It's up to you.
Posted on 06-08-2016 11:17 AM
What I have posted gives you control over "every" setting in the Java 8 control panel and may be more than what some people need, if they just want a simple package deployment. Everyone has their own deployment method and preferred software.
Posted on 06-09-2016 10:03 AM
I have been using Composer to build a deployable package. This has worked well for me, but often, when I run a test install via Self Service, I would end up with a bad installation of Java. I created a new package for 8u91 yesterday, and it seems to be working really well.