java.sh and javac.sh ? May be i say a stupid thing but... i would rename for java and javac without ".sh"
If it doesn't works are you shure that this files are in a bin directory that the linux searchs for a command?
examples of directories of linux that searchs:
/bin
/usr/bin
/usr/local/bin
example directories that (to me) linux doesn't search:
/usr/local/java/bin
You can create a link from /usr/bin/java to /usr/local/java/bin/java (if it is the directory you have installed it) and the same for javac.
p.s: Anyone knows How to change that (make a directory that linux search for a command)

?