This question already has an answer here:
- How do I install Java? 11 answers
Java is not working on Google Chrome in Ubuntu 12.04. How can I enable it?
If you do have Java installed, you need the
Restart your browser and Java should be working.
Java have a page that shows you how to do this. Java Instructions
The following is the instructions from that page
Follow these instructions to enable Java in your web browser on Ubuntu Linux. Google Chrome
Hope this helps