I use gcj().
But as far as your problem it doesn't sound javac() specific. Just sounds like a PATH issue.
You can check with...
Code:
# which javac
which: no javac in ($PATH)
# whereis javac
javac:
My results because I do not use javac().
If you manually installed it, that is, not from a package manager like apt-get(), you may need to update your PATH to include the folder where you placed the necessary binaries.
A simple process, just type...
Code:
# PATH=$PATH:/dir/to/JDK/binaries/
This tells your system that if a command is called you should look in all of the places you normally look and now also look in this directory as well.
Or, you could use ln() to create a link...
Code:
# ln -s /dir/to/YOUR_JDK/bin/javac /usr/bin/javac