Hi
You need to adjust the PATH-Variable, so that
the newly installed JAVA-stuff is looked for
when trying to start a program.
In a shell-window, type (Syntax for bash)
cd
PATH=/usr/lib/jdk1.XXXX/jre/bin:$PATH;export PATH;
where /usr/lib/jdk1.xxxx/ reflects the directory
path to your installation of JDK.
Then, in the same shell-window, start installation again.