unable to run javac on Ubuntu [closed]
I'm trying to run javac on a Ubuntu terminal. But I get the following:
$ javac
The program 'javac' can be found in the following packages:
* openjdk-6-jdk
* ecj
* gcj-4.4-jdk
* gcj-4.6-jdk
* gcj-4.5-jdk
* openjdk-7-jdk
Try: sudo apt-get install <selected package>
jdk is already installed and running says sudo apt-get install openjdk-6-jdk
0 upgraded, 0 newly installed, 0 to remove and 322 not upgraded.
My jdk is installed in /usr/lib/jvm/java-6-open-jdk; and I'm able to compile and run a java program from eclipse. But I'm having this fore-mentioned problem when using a terminal.