OpenJDK 8 which provides the JRE and JDK to work with Java 8 is available from Ubuntu repositories.