JAVA_HOME should be pointed to parent of bin
JAVA_HOME
bin
It's because the path you mentioned is different from what Jenkins has stored.Go to Manage Jenkins-> System Information->Environment VariablesYou can see JAVA_HOME copy the path and save it.Issue will be resolved
/usr/lib/jvm/java-8-openjdk-amd64/
This is what worked in my case.