I have downloaded jdk1.6.0_32.bin
(Sun JDK) from Oracle file, and I installed it in /usr/lib/jvm
. Now when I try to compile a Java source file using javac
it says:
The program 'javac' can be found in the following packages:
* openjdk-6-jdk
* ecj
* gcj-4.4-jdk
* gcj-4.5-jdk
Try: sudo apt-get install <selected package>
It means that it is not getting the path of my installed java. Do I need to set a path? How can I make it to work?