Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.3.6
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Linux, Ubuntu
    • Patch Submitted:
      Yes

      Description

      When JAVA_HOME is not set (but java command is in the PATH) then grails command (startGrails script actually) stops at message "JAVA_HOME environment variable is not set".
      I don't want to explicitly set JAVA_HOME variable because I manage my JDK instances by update-java-alternatives in Ubuntu. It switches system wide JDK, but does not set the JAVA_HOME variable. If I would set JAVA_HOME manually then any changes made by update-java-alternatives would not be reflected in JAVA_HOME which is obviously incorrect.

      However startGrails script can be improved, so that it can guess JAVA_HOME. Actually Groovy startup script does it very well, so I moved auto-discovery code from groovy script to startGrails and made pull request at Github

        Activity

        Maciej Mazur created issue -
        Hide
        Maciej Mazur added a comment -
        Show
        Maciej Mazur added a comment - Pull request are here https://github.com/grails/grails-core/pull/43 (master - 1.4.x) https://github.com/grails/grails-core/pull/44 (1.3.x)
        Contegix Support made changes -
        Field Original Value New Value
        Project Import Thu Mar 24 21:22:24 CDT 2011 [ 1301019744151 ]
        Burt Beckwith made changes -
        Workflow jira [ 35393 ] Grails [ 41321 ]
        Burt Beckwith made changes -
        Workflow Grails [ 41321 ] Copy of Grails [ 48749 ]
        Burt Beckwith made changes -
        Workflow Copy of Grails [ 48749 ] Grails [ 56159 ]
        Burt Beckwith made changes -
        Workflow Grails [ 56159 ] Grails2 [ 63701 ]
        Graeme Rocher made changes -
        Priority Major [ 3 ] Critical [ 2 ]
        Fix Version/s 2.0-RC1 [ 12803 ]
        Graeme Rocher made changes -
        Fix Version/s 2.0.1 [ 13005 ]
        Fix Version/s 2.0-RC1 [ 12803 ]
        Burt Beckwith made changes -
        Workflow Grails2 [ 63701 ] jira [ 71139 ]
        Burt Beckwith made changes -
        Workflow jira [ 71139 ] Grails2 [ 79179 ]
        Peter Ledbrook made changes -
        Last Reviewed 01/Jan/10
        Peter Ledbrook made changes -
        Workflow Grails2 [ 79179 ] jira [ 87376 ]
        Peter Ledbrook made changes -
        Workflow jira [ 87376 ] Grails2 [ 95517 ]
        Graeme Rocher made changes -
        Fix Version/s 2.0.2 [ 13064 ]
        Fix Version/s 2.0.1 [ 13005 ]
        Hide
        Raviteja added a comment -

        This is related to GRAILS-8789. If the code change given in the comment seems appropriate please apply that

        Show
        Raviteja added a comment - This is related to GRAILS-8789 . If the code change given in the comment seems appropriate please apply that
        Graeme Rocher made changes -
        Fix Version/s 2.0.3 [ 13094 ]
        Fix Version/s 2.0.2 [ 13064 ]
        Graeme Rocher made changes -
        Fix Version/s 2.0.4 [ 13099 ]
        Fix Version/s 2.0.3 [ 13094 ]
        Hide
        Raviteja added a comment -
        Show
        Raviteja added a comment - Pull request for GRAIL-8789: https://github.com/marcoVermeulen/grails-ubuntu/pull/1
        Jeff Scott Brown made changes -
        Fix Version/s 2.2 [ 13093 ]
        Fix Version/s 2.0.4 [ 13099 ]
        Graeme Rocher made changes -
        Fix Version/s 2.3 [ 13311 ]
        Fix Version/s 2.2-RC1 [ 13093 ]
        Graeme Rocher made changes -
        Fix Version/s 2.3-M2 [ 13457 ]
        Fix Version/s 2.3-M1 [ 13311 ]
        Graeme Rocher made changes -
        Fix Version/s 2.3-RC1 [ 13458 ]
        Fix Version/s 2.3-M2 [ 13457 ]
        Graeme Rocher made changes -
        Fix Version/s 2.3-RC2 [ 13482 ]
        Fix Version/s 2.3-RC1 [ 13458 ]
        Graeme Rocher made changes -
        Fix Version/s 2.3.1 [ 13502 ]
        Fix Version/s 2.3-RC2 [ 13482 ]
        Graeme Rocher made changes -
        Priority Critical [ 2 ] Minor [ 4 ]
        Graeme Rocher made changes -
        Fix Version/s 2.3.1 [ 13502 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Maciej Mazur
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Last Reviewed:

              Development