Depends on how it actually detects the java version. A simple
-Djava.version=1.8
when launching might be sufficient if it does it the naive way