[CentOS] install java?

Sun Jun 23 07:24:15 UTC 2013
hadi motamedi <motamedi24 at gmail.com>

Dear All
On my centos 6.2 machine, when I use its default mozilla to browse it returns "loading java class, wait" and waits
endlessly. Can you please let me know how can I install java on this
machine to get rid of the above message and be able to proceed?
Thank you