Agent JVM has terminated. Exit code=127

Hi, I tried to create a new node. I even mentioned the java path in the remote machine under Advanced → Java Path in Node configuration. But still I’m getting the below error. I can see this path in WINSCP and the java file exist and it has read and execution rights. Please let me know if I’m missing anthing.

bash: /usr/java/jdk1.8.0_311-amd64/bin/java: No such file or directory
Agent JVM has terminated. Exit code=127
[04/26/22 14:30:35] Launch failed - cleaning up connection
[04/26/22 14:30:35] [SSH] Connection closed.

Can you show your “Java Path” configuration here?

Apparently Java is not there where you expect - can you ssh to the agent machine and show the output of the following command

find /usr/java/ -name java

find /usr/java/ -name java
/usr/java/
/usr/java/jdk1.8.0_311-amd64/bin/java
/usr/java/jdk1.8.0_311-amd64/jre/bin/java

Hi Marcin, thanks for your time. I was checking on the wrong server. Yes you are right. There is no Java installed on this machine.

1 Like