java version not found after BeagleBone reset


I installed Oracle java8 on my BeagleBone black using the following link:

The problem is after reset the java is not recogonized as a command and I had to reenter the following commands to get the java version:
export JAVA_HOME=/usr/jdk1.8.0
export PATH=$PATH:$JAVA_HOME/bin

Any idea why is this happenning?

Thanks in advance for your help.