1st update your Java:
MRJ 2.2.5 for OS 8.1-9.2 & try again. From memory, there will be an installer that ends up on your desktop. It's like a disk image I think. It's been a while.
After installing rebuild the Desktop file by restarting & holding down Command (Apple)+Option keys.
As an xtra point about OS 9 see
this point about ram & apple, etc. (click on link.)