Use both Python and sbt

This happens to me in a VM where I set language: python but I also need to run an sbt +compile.

My understanding is that:
jdk: openjdk8 won’t work because my language is set to python. How can I work around this?

See line /usr/local/lib/jvm/openjdk11 in my output here: https://travis-ci.org/combust/mleap/jobs/650122062