On Wed, Apr 4, 2012 at 5:49 AM, Karthikeyan S <[email protected]> wrote:
> Hi Jan,
>     While you posted the reply, I figured it out myself. It appears, jenkins
> is trying to find the java that came along with the OS. Since the new
> version of JDK was a bin directory downloaded from Oracle site, jenkins
> recognize this by default. So, I looked in the file /etc/sysconfig/jenkins
> and added jdk 1.6 path  for the variable  JENKINS_JAVA_CMD.
>

If the OS is RHEL/CentOS 5 or 6, you could have used:
yum install java-1.6.0-openjdk
to get a stock version that works fine with jenkins.   This also sets
up the OS 'alternatives' (a system of symlinks) to make it the default
jave in PATH.  That advantage of this approach is that subsequent 'yum
update's take care of all security/bug fixes where with non-stock
programs you have to keep checking for those yourself.

-- 
   Les Mikesell
    [email protected]

Reply via email to