I am getting the error message below when I run javac
on ubuntu terminal:
The program 'javac' can be found in the following packages:
* default-jdk
* ecj
* gcj-4.6-jdk
* gcj-4.7-jdk
* openjdk-7-jdk
* openjdk-6-jdk
Try: sudo apt-get install <selected package>
While Java -version
is working.
How to resolve this?
sudo apt-get install openjdk-7-jdk
or whatever version of the JDK you want. – Nattgew May 18 '14 at 04:55