i would like to remove java from all my apple device.
Most everybody agrees it's too hard and the best you can do is disable it. If you are actually still using OS X 10.5.2 (you really should go with at least 10.5.8) I'm reatively certain that the OS needs some of Java for proper operation.
About all I can offer is at the end of this article from last Spring on MacFixIt http://reviews.cnet.com/8301-13727_7-57408841-263/how-to-check-for-and-disable-j ava-in-os-x/.
But your best bet would be to upgrade your OS X to whatever your computer can handle.