MrPickles
MrPickles

Reputation: 1445

Jenkins not finding JAVA_HOME

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.

Upvotes: 3

Views: 20861

Answers (3)

Faketester
Faketester

Reputation: 19

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

Upvotes: 1

DimiDak
DimiDak

Reputation: 5641

/usr/lib/jvm/java-8-openjdk-amd64/

This is what worked in my case.

enter image description here

Upvotes: 4

Jigar Joshi
Jigar Joshi

Reputation: 240948

JAVA_HOME should be pointed to parent of bin

Upvotes: 7

Related Questions