Details

    • Operating System/s:
      Windows 7
    • QA Validation Status:
      Validated by QA

      Description

      Spoon.bat return error message 'GOTO not expected at this location' and doesn't start. Happens with 4.0 GA EE & 4.1 from CI, on Win7

        Activity

        Hide
        Kurtis Cruzada added a comment -
        make sure windows\system and windows\system32 are before any other folders in your PATH.
        Show
        Kurtis Cruzada added a comment - make sure windows\system and windows\system32 are before any other folders in your PATH.
        Hide
        Wim Peggeman added a comment -
        Had the same issue. I've added the Java JDK to the path. Solved the issue.
        Show
        Wim Peggeman added a comment - Had the same issue. I've added the Java JDK to the path. Solved the issue.
        Hide
        Guido Leenders added a comment -
        Had same problem on new workstation. Windows 7. Spoon 4.1.0.

        Cause: only 32-bit Java was installed.

        This is the line in spool.bat causing it:

        IF %IS64BITJAVA%==1 GOTO :USE64

        The IS64BITJAVA should be set by:
        FOR /F %%a IN ('java -version 2^>^&1^|find /C "64-Bit"') DO (SET /a IS64BITJAVA=%%a)

        When running 32-bit, IS64BITJAVA is empty string, and "IF ==1 GOT :USE64" causes GOTO not expected.

        Resolution (for me): change

        FOR /F %%a IN ('java -version 2^>^&1^|find /C "64-Bit"') DO (SET /a IS64BITJAVA=%%a)

        to

        set IS64BITJAVA=0
        FOR /F %%a IN ('java -version 2^>^&1^|find /C "64-Bit"') DO (SET /a IS64BITJAVA=%%a)

        Or use 64-bit Java :-)
        Show
        Guido Leenders added a comment - Had same problem on new workstation. Windows 7. Spoon 4.1.0. Cause: only 32-bit Java was installed. This is the line in spool.bat causing it: IF %IS64BITJAVA%==1 GOTO :USE64 The IS64BITJAVA should be set by: FOR /F %%a IN ('java -version 2^>^&1^|find /C "64-Bit"') DO (SET /a IS64BITJAVA=%%a) When running 32-bit, IS64BITJAVA is empty string, and "IF ==1 GOT :USE64" causes GOTO not expected. Resolution (for me): change FOR /F %%a IN ('java -version 2^>^&1^|find /C "64-Bit"') DO (SET /a IS64BITJAVA=%%a) to set IS64BITJAVA=0 FOR /F %%a IN ('java -version 2^>^&1^|find /C "64-Bit"') DO (SET /a IS64BITJAVA=%%a) Or use 64-bit Java :-)
        Hide
        Matt Casters added a comment -
        I checked in the proposed "set IS64BITJAVA=0" fix in revision 15232
        Show
        Matt Casters added a comment - I checked in the proposed "set IS64BITJAVA=0" fix in revision 15232
        Hide
        Benjamin Kallmann added a comment -
        now also fixed in PDI 3.2.5 and 4.1.4
        Show
        Benjamin Kallmann added a comment - now also fixed in PDI 3.2.5 and 4.1.4
        Hide
        Golda David added a comment -
        Tested this issue using the PDI nightly build on 7/21/2011.

        Spoon .bat now includes

        set PENTAHO_JAVA=javaw
        set IS64BITJAVA=0

        Marking this as resolved
        Show
        Golda David added a comment - Tested this issue using the PDI nightly build on 7/21/2011. Spoon .bat now includes set PENTAHO_JAVA=javaw set IS64BITJAVA=0 Marking this as resolved
        Hide
        Golda David added a comment -
        reopening to include 4.1.4 testing
        Show
        Golda David added a comment - reopening to include 4.1.4 testing

          People

          • Assignee:
            Golda David
            Reporter:
            Jos van Dongen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: