Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

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!

share|improve this answer

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