I have Ubuntu 13.04 32-bit installed on my system.
I downloaded Java SE Development Kit 7 from here with the extention .tar.gz
I used the command tar xvfz Downloads/jdk-7u51-linux-i586.tar.gz
to uncompress the downloaded file in my home directory i.e /home/computer/
I am able to compile and run java program using Bluej IDE. It is working fine.
I used the command jdk1.7.0_51/bin/java -jar Downloads/bluej-310.jar
to install bluej IDE.
But I also want to compile and run java programs using the terminal in Ubuntu.
When I type the command java -version
I get the message
The program 'java' can be found in the following packages:
* default-jre
* gcj-4.6-jre-headless
* gcj-4.7-jre-headless
* openjdk-7-jre-headless
* openjdk-6-jre-headless
Try: sudo apt-get install <selected package>
Can anyone please help me out.