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

Win7 x64: x86 Java runtime creates bad PATH on x64 OS causing ' \Java\jre6\bin"" was unexpected at this time.' error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: remoting
    • Labels:
      None
    • Environment:
      Win7 x64
    • Similar Issues:

      Description

      Win7 x64: x86 Java runtime creates bad PATH on x64 OS causing ' \Java\jre6\bin"" was unexpected at this time.' error

      I had installed the x86 Java 6, Version 6 update 29, (build 1.6.0_29-b11), which installs into C:\Program Files (x86)\Java\jre6. When I started the jenkins client and ran a build I received ' \Java\jre6\bin"" was unexpected at this time.' errors in the console any time a shell command was invoked on the slave.

      Upon investigation it appears that the Java runtime set to path to (as reported by the Manage Jenkins --> Manage Nodes --> My Slave --> Systeminfo page:

      C:\Program Files (x86)\Java\jre6\bin;...;"C:\Program Files (x86)\Java\jre6\bin"

      Searching about on the internet I see several projects reporting issues about unescaped parens being added to the path.
      https://issues.apache.org/jira/browse/GERONIMO-5365
      https://forums.oracle.com/forums/thread.jspa?threadID=2171702

      I can work around this issue by using the x64 JRE on 64-bit OS.

        Attachments

          Issue Links

            Activity

            mmacvicar Mark MacVicar created issue -
            ffromm Frederik Fromm made changes -
            Field Original Value New Value
            Component/s master-slave [ 15489 ]
            Component/s slave-setup [ 15929 ]
            robertg2 Robert Grampp made changes -
            Priority Minor [ 4 ] Major [ 3 ]
            biriuck ilie daniel made changes -
            Link This issue is duplicated by JENKINS-21621 [ JENKINS-21621 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 142264 ] JNJira + In-Review [ 175644 ]
            oleg_nenashev Oleg Nenashev made changes -
            Assignee Kohsuke Kawaguchi [ kohsuke ] Oleg Nenashev [ oleg_nenashev ]
            oleg_nenashev Oleg Nenashev made changes -
            Assignee Oleg Nenashev [ oleg_nenashev ]

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              mmacvicar Mark MacVicar
              Votes:
              23 Vote for this issue
              Watchers:
              28 Start watching this issue

                Dates

                Created:
                Updated: