It depends which OSX version you have. Java 1.5 is only available for OSX 10.4 & is a normal update. If you have OSX 10.4 then go to apple icon top left of screen, select Software update.
If running an earlier OSX, then see
Lime Wire ยป Download Out-Of-Date Installers