I'm new to Ubuntu and I have recently made my laptop dual boot Windows 8 and Ubuntu 12.04. I installed java by using the command
sudo apt-get install openjdk-7-jdk
It installed successfully. I tried compile java program it shows following message
a@ubuntu:~/Desktop$ javac hello.java The program 'javac' can be found in the following packages: * default-jdk * ecj * gcj-4.6-jdk * openjdk-6-jdk * gcj-4.5-jdk * openjdk-7-jdk Try: sudo apt-get install <selected package>
Please suggest what to do??? Thanks in advance..