# Jdk: openjdk8 selects javac from Oracle JDK 9

**URL:** <https://travis-ci.community/t/jdk-openjdk8-selects-javac-from-oracle-jdk-9/577>\
**Category:** Linux\
**Tags:** build-env\
**Created:** [October 31, 2018, 9:31am UTC](https://travis-ci.community/t/jdk-openjdk8-selects-javac-from-oracle-jdk-9/577 "2018-10-31T09:31:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![guille.rodriguez](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/guille.rodriguez/32/324_2.png) [@guille.rodriguez](https://travis-ci.community/u/guille.rodriguez)\
**Post date:** [October 31, 2018, 9:31am UTC](https://travis-ci.community/t/jdk-openjdk8-selects-javac-from-oracle-jdk-9/577/1 "2018-10-31T09:31:05Z")

</div>

Hello,

It seems that setting jdk: openjdk8 on the .travis.yml file actually selects javac from Oracle JDK 9 (reproduced with Ubuntu 14.04.5 images).

I have created an issue for jdk\_switcher with more details on the problem: [https://github.com/michaelklishin/jdk\_switcher/issues/20](https://github.com/michaelklishin/jdk_switcher/issues/20)

As described in the issue, this actually seems to be bug in Ubuntu’s update-java-alternatives.

Possible workarounds could be:

- Patch update-java-alternatives (a patch is already available in the Debian / Ubuntu bug reports linked in the Github issue above)
- Patch the .jinfo file from openjdk-8 and either replace the “jdkhl” tags with “jdk” or duplicate all “jdkhl” entries with new entries tagged “jdk”

Best,

Guillermo
