Hi and welcome! Could you please give more details on your issue? What OS are you running, is it 32bit or 64bit? Do you have all the dependecies installed? Are you in a virtual environment?
Your issue may not be a Java related matter but other elements resulting in a Java/Jre error, so the more information you provide, the better one can answer.
It is best to install Java/JRE from the terminal/console on Linux platforms. Depending on the type Linux you have, you can typesudo apt-get install default-jre
if it is UBUNTU, GNU/LINUX or one of its derivatives.
You can even follow this link
for a more detailed method.