# JAVA\_HOME on macOS not set (OpenJDK/Java 13)

**URL:** <https://travis-ci.community/t/java-home-on-macos-not-set-openjdk-java-13/6590>\
**Category:** macOS\
**Tags:** java, bug\
**Created:** [December 22, 2019, 4:47am UTC](https://travis-ci.community/t/java-home-on-macos-not-set-openjdk-java-13/6590 "2019-12-22T04:47:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sormuras](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/sormuras/32/2770_2.png) [@sormuras](https://travis-ci.community/u/sormuras)\
**Post date:** [December 22, 2019, 4:47am UTC](https://travis-ci.community/t/java-home-on-macos-not-set-openjdk-java-13/6590/1 "2019-12-22T04:47:10Z")

</div>

Seems like JDK 13 is the default JDK on MacOS – `install-jdk.sh` is not invoked by Travis CI on that configuration. Compare the output to the other ones of MacOS:

11: [https://travis-ci.org/forax/pro/jobs/628128983#L54](https://travis-ci.org/forax/pro/jobs/628128983#L54) – 14 lines of installation log  
12: [https://travis-ci.org/forax/pro/jobs/628128984#L54](https://travis-ci.org/forax/pro/jobs/628128984#L54) – 14 lines of installation log  
13: [https://travis-ci.org/forax/pro/jobs/628128985#L54](https://travis-ci.org/forax/pro/jobs/628128985#L54) – _empty_  
14: [https://travis-ci.org/forax/pro/jobs/628128986#L54](https://travis-ci.org/forax/pro/jobs/628128986#L54) – 14 lines of installation log

By not invoking `install-jdk.sh`, the `JAVA_HOME` environment variable is not set. It should point to:

`/Library/Java/JavaVirtualMachines/openjdk-13.0.1.jdk/Contents/Home`
