I've heard of other LW 5 mac users with same problem. Not seen any fixes.
Have you tried Software Update .. 10.5.2 is oldish now. There has been java updates since then from memory.
The updates might fix the issue.
Just curious why you posted in spanish section & write in english.