Muungwana - the find command gives home/john/JavaPrograms/Jdk1.6.0_23/bin/javac
So I tried export Path=home/john/JavaPrograms/jdk1.6.0_23/bin
but I still get command not found.
Texstar - tried using Synaptic to get task-java - failed to find packages on server. This was the same result I got trying to install jdk using synaptic hence trying the manual route.
i am glad you got this sorted out, it is very important to follow instructions as they are given to you and best to copy and paste commands to make sure you dont mistype them.
"Path" is not the same as "PATH", me and texster used "PATH" because that is what you were supposed to use, you use "Path" and that is why it did not work.
You also for some reason consistently did not add the "/" infront of "home" in your path. These are those kind of little things that will drive you insane if you dont follow exactly because things will appear to simply not work for no good reason.
You already got this sorted out so do this for your own exercise knowledge of how linux works.
If you still have java in the same folder, then type these commands first to use your version of java.
You have "java" installed at "/home/john/JavaPrograms/jdk1.6.0_23/" and those first two commands will the rest of your system where it is.
Now, a command "which javac" should give you "/home/john/JavaPrograms/jdk1.6.0_23/bin/javac".
The "which" command will tell you the full path to where the command is located on your system
You should remember that those first "export" commands are necessary to tell your system where you have install a program if you install it at a non standard location. You may not know what exactly they do but know that they must be there.
happy java coding