So far, it's worked on a couple of my test systems, both without Java installed at all, and with an older version (1.8.0_131). I'm positive it can be dramatically improved, but even though there are dozens of threads about it, I couldn't find a script that worked for me. Sudo installer -pkg /Volumes/Java 8 Update $minorver/Java 8 Update $minorver.app/Contents/Resources/JavaAppletPlugin.pkg -target /ĭiskutil umount /Volumes/Java 8 Update $minorver Hdiutil attach jre-8i$minorver-macosx-圆4.dmg # If the file is larger than 500kb, assume it's the real dmg # Get build number (counting down from 20), since I can't find anywhere that Oracle publishes this in an easily-findable placeįilename="jre-8i$minorver-macosx-圆4.dmg"Ĭurl -j -k -L -H "Cookie: oraclelicense=accept-securebackup-cookie" $minorver-b$b/96a7b8442fe848ef90c96a2fad6ed6d1/jre-8u$minorver-macosx-圆4.dmg > $filename This version only does the JRE, although I'm sure you could expand it to do the JDK also. I wrote a script to install and update Java. I know this has been discussed several times, but I wanted to throw my 2 cents in. as soon as I posted this, I found a script that appears to work.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |