You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@reef.apache.org by Markus Weimer <ma...@weimo.de> on 2017/08/07 22:21:07 UTC

Travis builds are failing

Hello,

it looks like out travis build are failing. A recent example is here[0]:

```
$ mvn clean install -q -ff -Dsurefire.useFile=false -DLOG_LEVEL=WARN

Error: JAVA_HOME is not defined correctly.

  We cannot execute /usr/lib/jvm/java-7-oracle/bin/java
```

This seems to be caused by an earlier error / warning:

```
$ jdk_switcher use oraclejdk7

Switching to Oracle JDK7 (java-7-oracle), JAVA_HOME will be set to
/usr/lib/jvm/java-7-oracle

update-java-alternatives: directory does not exist: /usr/lib/jvm/java-7-oracle
```

This strikes me as something outside of our control? Is this a travis bug?

Thanks,

Markus



[0]: https://travis-ci.org/apache/reef/jobs/261996992

Re: Travis builds are failing

Posted by Markus Weimer <ma...@weimo.de>.
Hi,

so I found the root cause. Travis updated their default linux:

https://docs.travis-ci.com/user/precise-to-trusty-migration-guide/

And that linux no longer comes with oraclejdk7.  I filled REEF-1858 to
change to `openjdk7`.

Markus

On Mon, Aug 7, 2017 at 3:21 PM, Markus Weimer <ma...@weimo.de> wrote:
> Hello,
>
> it looks like out travis build are failing. A recent example is here[0]:
>
> ```
> $ mvn clean install -q -ff -Dsurefire.useFile=false -DLOG_LEVEL=WARN
>
> Error: JAVA_HOME is not defined correctly.
>
>   We cannot execute /usr/lib/jvm/java-7-oracle/bin/java
> ```
>
> This seems to be caused by an earlier error / warning:
>
> ```
> $ jdk_switcher use oraclejdk7
>
> Switching to Oracle JDK7 (java-7-oracle), JAVA_HOME will be set to
> /usr/lib/jvm/java-7-oracle
>
> update-java-alternatives: directory does not exist: /usr/lib/jvm/java-7-oracle
> ```
>
> This strikes me as something outside of our control? Is this a travis bug?
>
> Thanks,
>
> Markus
>
>
>
> [0]: https://travis-ci.org/apache/reef/jobs/261996992