# Use both Python and sbt

**URL:** https://travis-ci.community/t/use-both-python-and-sbt/7227
**Category:** Travis CI Discussions & Feedback
**Tags:** travis-yml, java, python, build-env
**Created:** [February 13, 2020, 7:49pm UTC](https://travis-ci.community/t/use-both-python-and-sbt/7227 "2020-02-13T19:49:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![lucagiovagnoli](https://avatars.discourse-cdn.com/v4/letter/l/ed655f/32.png) [@lucagiovagnoli](https://travis-ci.community/u/lucagiovagnoli)
#### Post date: [February 13, 2020, 7:49pm UTC](https://travis-ci.community/t/use-both-python-and-sbt/7227/1 "2020-02-13T19:49:31Z")

</div>

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](https://travis-ci.org/combust/mleap/jobs/650122062)
