I try to connect Jenkins to a windows-machine, but during the connection process Jenkins tells me that it couldn't find java even thought I installed the newest Java-Version.
[10/19/18 14:00:30] [SSH] Checking java version of /usr/local/java/bin/java
Couldn't figure out the Java version of /usr/local/java/bin/java
java.io.IOException: Java not found on hudson.slaves.SlaveComputer@d671ca. Install a Java 8 version on the Agent.
Type which java
in the slave agent and paste the path in the environment variables of the node in Jenkins
NAME: JAVA_HOME
Value: /usr/bin/java
Java isn't installed for the user that Jenkins is using? Perhaps java is not on the classpath? Is JAVA_HOME set?
Those are the places that I would start by looking
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With