If that happens after installation it is because you said ok in the installer to use the
default Java install and for some reason the oracle install you made did not set it self
up as the default java version.
Posted by forums
Original post:
https://community.jboss.org/message/840634#840634