Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

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.

1 Answer

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
add comment

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