Your path is pointing to lower version. You can set the path to point latest JRE and then try to install.
Below is the syntax:
export PATH=$PATH:/path/to/dir
This works, however each time I exit the terminal and start a new terminal instance, this path is lost, and I need to run the export command again.
To maintain permanent:
You need to add it to your ~/.profile file.
export PATH=$PATH:/path/to/dir
Thanks,
#webMethods#Integration-Server-and-ESB#webMethods-General