scripts: allow java8 runtime

Acked-by: Paul Millar
Target: master, 2.9, 2.8, 2.7, 2.6
Require-book: no
Require-notes: no