Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.5: Reinstall Java on Leopard' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Reinstall Java on Leopard
Authored by: gunmetal on Sep 22, '09 09:30:49AM
Here is the shell script I used. I copied the Java packages from the OS X Install DVD (located inside /System/Installation/Packages), so I could roll this out to alot of Macs via SSH, from a common network volume. Change the JavaFix directory in the installer commands to point to your directory where these packages are stored. Here are the locations for Update 2 and 3, which I downloaded to the same directory. JavaforMacOSX10.5Update2 JavaforMacOSX10.5Update3
#!/bin/sh
# File Name: RevertJavaforLeopard.command
#
# Removing files and folders for Java installed on Mac OS 10.5.
rm -rf "/Library/Java" "/Library/Internet Plugins/JavaPluginCocoa.bundle" "/System/Library/Java" "/System/Library/Frameworks/JavaVM.framework/" "~/Library/Caches/Java"
# Using pkgutil to forget old Java related packages.
pkgutil --forget  com.apple.pkg.JavaToolsLeo
pkgutil --forget  com.apple.pkg.Java
pkgutil --forget  com.apple.pkg.JavaForMacOSX10.5Update2
pkgutil --forget  com.apple.pkg.JavaForMacOSX10.5Update3
pkgutil --forget  com.apple.pkg.JavaForMacOSX10.5Update4
pkgutil --forget  com.apple.pkg.JavaForMacOSX10.5Update5
# Installing the Java packages from 10.5.4, as well as Java Updates 2 and 3. I extracted the Java packages from the DVD so I could roll out this fix via SSH off a network volume.
installer -target / -verbose -pkg "/JavaFix/Java.pkg"
installer -target / -verbose -pkg "/JavaFix/JavaTools.pkg"
installer -target / -verbose -pkg "/JavaFix/JavaForMacOSX10.5Update2.pkg"
installer -target / -verbose -pkg "/JavaFix/JavaForMacOSX10.5Update3.pkg"
# You could include JavaForMacOSX10.5Update4 possibly, but I've found performance of Java Web Start launching better with only Update3 applied.


[ Reply to This | # ]