The images used for these tests do have Java installed, but not on PATH. You 
need to pick which $JAVA_HOME (jdk8 or jdk11) you wish to run with. These 
values are set on the Gradle invocation line for the test type, depending on 
platform/job-name.

From: Kirk Lund <kl...@apache.org>
Date: Saturday, June 6, 2020 at 5:18 AM
To: dev@geode.apache.org <dev@geode.apache.org>
Subject: Is "java" available to acceptanceTests?
Does the image(s) we use for running acceptanceTest include "java"? I've
written some new AcceptanceTests for the LocatorLauncher and ServerLauncher
which pass locally but fail in precheckin in the cloud with
*java.io.IOException:
Cannot run program "java"*.

> Task :geode-assembly:acceptanceTest

org.apache.geode.launchers.LocatorLauncherWithPulseAndCustomLogConfigAcceptanceTest
> locatorLauncherUsesConfigFileInClasspathWithoutGeodePlugins FAILED
    java.io.IOException: Cannot run program "java" (in directory
"/tmp/junit5795014123591460975"): error=2, No such file or directory
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1128)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1071)
        at
org.apache.geode.launchers.LocatorLauncherWithPulseAndCustomLogConfigAcceptanceTest.locatorLauncherUsesConfigFileInClasspathWithoutGeodePlugins(LocatorLauncherWithPulseAndCustomLogConfigAcceptanceTest.java:164)

        Caused by:
        java.io.IOException: error=2, No such file or directory
            at java.lang.ProcessImpl.forkAndExec(Native Method)
            at java.lang.ProcessImpl.<init>(ProcessImpl.java:340)
            at java.lang.ProcessImpl.start(ProcessImpl.java:271)
            at java.lang.ProcessBuilder.start(ProcessBuilder.java:1107)
            ... 2 more

Reply via email to