: Which hardware platform are you working with ?? Intel Pentium IV ? Pentium III, II I, AMD Athlon, duron, Athlon 64, Athlon Xp ???
: I think you are not doing wrong, you just don't have the javac path in your default path ^_^
if your using bash, edit your .bash_profile
file which is in our home directory
in the file, you have a line : PATH=...
at the end add the path to your java and javac bin directory.
to know where they are :
(it may take some time)
it will return several aswer, look at the one within a /bin/ directory for instance : /opt/jdk1.5.0/bin/javac
then add is to your path, it may look like this
it should solve your problems
NB : you could also do alias in the /usr/bin directory with the ln -s command