2

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,175
  • 1
  • 15
  • 31

3 Answers3

8

JAVA_HOME should be pointed to parent of bin

jmj
  • 232,312
  • 42
  • 391
  • 431
2

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
  • 21
  • 2
1
/usr/lib/jvm/java-8-openjdk-amd64/

This is what worked in my case.

enter image description here

DimiDak
  • 3,891
  • 2
  • 22
  • 26