Jenkins JAVA_HOME 7 doesn't look like a JDK directory

Casablancais picture Casablancais · Dec 28, 2014 · Viewed 7.7k times · Source

I have jenkins installed on a Ubuntu 14.04.1 LTS. I'm trying to configure the jdk and when I type /usr/lib/jvm/java-7-openjdk-amd64 in the JAVA_HOME field, Jenkins complains that it doesn't look like a JDK directory.
Anyone know what might cause this?

Answer

jmj picture jmj · Dec 29, 2014

Problem is the location you are specifying is JRE not JDK (see comments since it doesn't have javac) also we couldn't find javac installed on System so just download fresh JDK and set JAVA_HOME point to there