# Run with java explicitly java -jar myapp.jar
:
If you're using an Ubuntu-based distribution, you can add a PPA (Personal Package Archive) to install a specific version of the JRE: linux java runtime environment