# Java version

**URL:** <https://discuss.circleci.com/t/java-version/2435>\
**Category:** Programming Languages\
**Tags:** java, sbt, scala\
**Created:** [March 2, 2016, 9:47am UTC](https://discuss.circleci.com/t/java-version/2435 "2016-03-02T09:47:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![talgendler](https://avatars.discourse-cdn.com/v4/letter/t/77aa72/32.png) [@talgendler](https://discuss.circleci.com/u/talgendler)\
**Post date:** [March 2, 2016, 9:47am UTC](https://discuss.circleci.com/t/java-version/2435/1 "2016-03-02T09:47:53Z")

</div>

Hi  
We have troubles building our Scala projects using Java version you have on the machine. The solution was to update APT repositories to include latest JAVA from webupd8team. We don’t really install new java version we just update the repos and accept the license. Java version itself is not changed at all and then the build passes.  
Here is what we do to solve this:  
\> java:

> ```
> version: oraclejdk8
> pre:
> - echo | sudo add-apt-repository ppa:webupd8team/java
> - sudo apt-get update
> - echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections
> 
> ```

Is there another way for us or you can fix this on your side ?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:31am UTC](https://discuss.circleci.com/t/java-version/2435/2 "2018-06-18T11:31:59Z")

</div>


