Set JAVA_HOME when installing plugins