This question already has an answer here:

this is the output thrown when i typed java -version he program 'java' can be found in the following packages: * gcj-4.4-jre-headless * gcj-4.5-jre-headless * openjdk-6-jre-headless Try: sudo apt-get install

please suggest me an alternative to install java on my machine.

marked as duplicate by Warren Hill, chronitis, Eric Carvalho, Kevin Bowen, belacqua Oct 24 '13 at 22:13

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


Go to Ubuntu Software Center and search for "OpenJDK Java 7". That's what I'm using and it has worked flawlessly for me so far!

Not the answer you're looking for? Browse other questions tagged or ask your own question.