To check that the JRE is properly installed in Ubuntu, running this following command from a terminal.

# java -version