After upgrading from Ubuntu 9.10 to 10.4, I had some issues getting Java to work with Firefox, after checking the software center, I found that the Java plugin has been removed.
To get this fixed, I simply followed the steps in here http://ubuntuforums.org/showpost.php?p=9008918&postcount=32 and it worked well after that.