Need to install Java runtime in Ubuntu Core 16

If you want to run your Java application on UC16 then it is expected that you simply package it as a snap with all dependencies included. The docs should provide some guidance https://snapcraft.io/docs/java-applications