Grails
  1. Grails
  2. GRAILS-7714

No ``\'' at the end of JAVA_HOME, or startGrails.bat will fail

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0 final
    • Component/s: Configuration
    • Labels:
      None
    • Environment:
      WinXP
    • Flagged:
      Impediment

      Description

      If you have a ``\'' at the end of JAVA_HOME, the target :have_JAVA_HOME in startGrails.bat does not find anything at ``find''.

        Activity

        Hide
        John Wagenleitner added a comment -

        This same issue was reported in Groovy a while back (GROOVY-2718). I incorporated the fix from the related commit https://github.com/groovy/groovy-core/commit/790ecf0a0f2b107bfee4c2dd06504be030442c1c for that issue and opened a pull request (https://github.com/grails/grails-core/pull/136).

        Show
        John Wagenleitner added a comment - This same issue was reported in Groovy a while back (GROOVY-2718). I incorporated the fix from the related commit https://github.com/groovy/groovy-core/commit/790ecf0a0f2b107bfee4c2dd06504be030442c1c for that issue and opened a pull request ( https://github.com/grails/grails-core/pull/136 ).
        Hide
        John Wagenleitner added a comment -

        The pull request was merge into master and I tested 2.0.0 final and 2.1.0 build snapshot from hudson to verify the fix. Think this can be resolved.

        c:\Projects\grails-issues>set GRAILS_HOME=c:\java\grails-2.0.0
        c:\Projects\grails-issues>set JAVA_HOME=c:\java\jdk1.6.0\
        c:\Projects\grails-issues>set PATH=%GRAILS_HOME%\bin;%JAVA_HOME%\bin
        c:\Projects\grails-issues>grails create-app GRAILS-7714
        
        ERROR: JAVA_HOME is set to an invalid directory: c:\java\jdk1.6.0\
        
        Please set the JAVA_HOME variable in your environment to match the
        location of your Java installation.
        
        c:\Projects\grails-issues>set GRAILS_HOME=c:\java\grails-2.1.0.BUILD-SNAPSHOT
        c:\Projects\grails-issues>set JAVA_HOME=c:\java\jdk1.6.0\
        c:\Projects\grails-issues>set PATH=%GRAILS_HOME%\bin;%JAVA_HOME%\bin
        c:\Projects\grails-issues>grails create-app GRAILS-7714
        | Created Grails Application at C:\Projects\grails-issues/GRAILS-7714
        c:\Projects\grails-issues>dir GRAILS-8573
        
        Show
        John Wagenleitner added a comment - The pull request was merge into master and I tested 2.0.0 final and 2.1.0 build snapshot from hudson to verify the fix. Think this can be resolved. c:\Projects\grails-issues>set GRAILS_HOME=c:\java\grails-2.0.0 c:\Projects\grails-issues>set JAVA_HOME=c:\java\jdk1.6.0\ c:\Projects\grails-issues>set PATH=%GRAILS_HOME%\bin;%JAVA_HOME%\bin c:\Projects\grails-issues>grails create-app GRAILS-7714 ERROR: JAVA_HOME is set to an invalid directory: c:\java\jdk1.6.0\ Please set the JAVA_HOME variable in your environment to match the location of your Java installation. c:\Projects\grails-issues>set GRAILS_HOME=c:\java\grails-2.1.0.BUILD-SNAPSHOT c:\Projects\grails-issues>set JAVA_HOME=c:\java\jdk1.6.0\ c:\Projects\grails-issues>set PATH=%GRAILS_HOME%\bin;%JAVA_HOME%\bin c:\Projects\grails-issues>grails create-app GRAILS-7714 | Created Grails Application at C:\Projects\grails-issues/GRAILS-7714 c:\Projects\grails-issues>dir GRAILS-8573

          People

          • Assignee:
            Unassigned
            Reporter:
            Kalten Kaalten
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Last Reviewed:

              Development