java version not found after BeagleBone reset

Hello,

I installed Oracle java8 on my BeagleBone black using the following link:
http://bradsmc.blogspot.fr/2014/06/installing-java-8-jdk-8-on-beaglebone.html

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.