Not all phones have Java. You may want to reveal the make and model next time.
Also, this is not a How To question. Try the CNET Cell Phone forum for this type of question.
Bob
The web browser on my cell phone wont open certain pages. I get a message telling me I need Java! Thanks in advance for any help I receive.

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic