Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-26078

"Path to java executable" issue with Java 8 on Windows slave

XMLWordPrintable

      It seems that Oracle's Java 8 installer for Windows uses symlinks to specify the locations of the java executables:

      C:\>dir \ProgramData\Oracle\Java\javapath
       Directory of C:\ProgramData\Oracle\Java\javapath
      
      15/12/2014  10:41    <DIR>          .
      15/12/2014  10:41    <DIR>          ..
      15/12/2014  10:41    <SYMLINK>      java.exe [C:\Program Files\Java\jre1.8.0_25\bin\java.exe]
      15/12/2014  10:41    <SYMLINK>      javaw.exe [C:\Program Files\Java\jre1.8.0_25\bin\javaw.exe]
      15/12/2014  10:41    <SYMLINK>      javaws.exe [C:\Program Files\Java\jre1.8.0_25\bin\javaws.exe]
      

      The actual path to javaw.exe is now:

      "C:\Program Files\Java\jre1.8.0_25\bin\javaw.exe"
      

      To make this work with Jenkins, we have to add "C:\Program Files\Java\jre1.8.0_25\bin" to the system path so that Jenkins can find javaw.exe.

      I think a more correct way would be to specify:

      "C:\ProgramData\Oracle\Java\javapath\javaw.exe"
      

      in the "Path to java executable" field of the slave's configuration. But, if I do that, the slave fails to launch and spins at:

      Connecting to tmsd409
      
      Checking if Java exists
      

      Jenkins-slave.xml on the slave shows:

      <executable>javaw.exe</executable>
      

      So my specified Java path appears not to be copied to the slave.

      Is this a bug?

            Unassigned Unassigned
            davida2009 David Aldrich
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: