Mac OS X on x86 Hardware 2008–2024 Technical Archive
InfiniteMac OSx86 › Leopard 10.5 › Updating Java without OS X Upgrade
5,502 reads · 2009-01-27
Note Leopard 10.5 AMD OSx86

Updating Java without OS X Upgrade

im running my AMD Hackintosh on 10.5.2 and i dont want to go through all the hassel of trying to upgrade it to the latest version of OS X until i upgrade my computer at which time i will be also reformatting my disks. However some of the…

Primary Author
@Aydinz Published 2009-01-27
Collection
Leopard 10.5
Archival Footprint
5,502 historical reads · 2 curated field notes (from 3 dispatches) · 2009-01-27
Credited Voices (3)
@Aydinz@erick2red@nfoav8or

im running my AMD Hackintosh on 10.5.2 and i dont want to go through all the hassel of trying to upgrade it to the latest version of OS X until i upgrade my computer at which time i will be also reformatting my disks. However some of the software im trying to install doesnt work because i have out of date Java software and whenever i try to update my Java it tells me i need to upgrade to the latest version of OS X, is there any way of getting around this?

Synthesized Community Field Notes

2 technical responses curated from 3 original dispatches

Field Note #1 @erick2red 2009-01-27

i don't think u can.
but u can try, i don't take any responsibilities for this, download java dmg update and then open it with pacifist, extract the files and copy it to the place they belong.

erick

Field Note #2 @nfoav8or 2009-01-27

its not that simple. permissions and file ownership will not be correct for most (if not all) of the files.

you can pull the distribution file with Pacifist then open it with Text Edit or BBEdit (better) and look for the section

if( system.compareVersions(system.version.ProductVersion, "10.5.4") < 0) { my.result.message = system.localizedStringWithFormat('VC_Version_message', '10.5.4'); my.result.type = 'MustNotUpgrade'; return false;

edit this to show

if( system.compareVersions(system.version.ProductVersion, "10.5.1") < 0) { my.result.message = system.localizedStringWithFormat('VC_Version_message', '10.5.1'); my.result.type = 'MustNotUpgrade'; return false;

Now repackage and install. for more info on how to do this, I'd recommend:
developer.apple.com/documentation/Darwin/Reference/ManPages/man1/pkgutil.1.html
s.sudre.fr ee.fr/Stuff/PackageMaker_Howto.html look to the scripts section of this page.

Sources & Contributor Provenance (3 credited usernames · Thread #2012)
UsernameDossier ContributionDispatchesActive Window
@AydinzPrimary Author12009-01-27
@erick2redContributor12009-01-27
@nfoav8orContributor12009-01-27