slvrsrfr : Which hardware platform are you working with ?? Intel Pentium IV ? Pentium III, II I, AMD Athlon, duron, Athlon 64, Athlon Xp ???
xveganx : 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 :
as root
(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
Code:
PATH=$PATH:$HOME/bin:/sbin:/usr/sbin:/usr/local/sbin:/opt/jdk1.5.0/bin
it should solve your problems
NB : you could also do alias in the /usr/bin directory with the ln -s command