3

Trying to paste where I have the Java JDK installed, but Jenkins keeps saying:

C:\Program Files (x86)\Java\jdk1.8.0_11\bin doesn’t look like a JDK directory

Also tried C:\Program Files (x86)\Java\jdk1.8.0_11\bin\java and got:

not a directory on the Jenkins master (but perhaps it exists on some slaves)

Anyone what the last folder/file should be? I am assuming bin\java but that is giving me trouble.

MrPickles
  • 1,255
  • 1
  • 16
  • 31

3 Answers3

7

JAVA_HOME should be pointed to parent of bin

jmj
  • 237,923
  • 42
  • 401
  • 438
2
/usr/lib/jvm/java-8-openjdk-amd64/

This is what worked in my case.

enter image description here

DimiDak
  • 4,820
  • 2
  • 26
  • 32
1

It's because the path you mentioned is different from what Jenkins has stored. Go to Manage Jenkins-> System Information->Environment Variables You can see JAVA_HOME copy the path and save it. Issue will be resolved

Faketester
  • 19
  • 2