I shud have done the searchine before posting. The solution of my problem already appeared at the following link.
However, Java still refused to work on my Mozilla 1.0.1. But the post gave me an idea about what to do.
I downloaded and extracted the sfx bin version on the j2re. I went to KDE control Panel>Web Browsing>Netscape Plugins.
I added another directory, i.e. the jre directory where the plugin was situated and clicked on Scan Plugins.
Restarted Mozilla and found Java working