Uploaded image for project: 'Spring Tool Suite'
  1. Spring Tool Suite
  2. STS-2494

Unable to Run/Debug a Grails application from STS, after changing Grails installation directory

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.8.0.RC3, 2.8.1.RELEASE, 2.9.0.RELEASE
    • Fix Version/s: 3.0.0.M1
    • Component/s: GRAILS
    • Environment:
      Operating System : Windows XP, JDK 1.7, Grails : 2.0.1, STS (tried with 2.8.0/2.9.0), Plugins installed in STS : Grails Support, Groovy Eclipse, Subclipse

      Description

      Steps
      1. Grails was installed in "C:\Program Files\Grails" folder atfirst.
      2. Then i setup STS, with JDK-7, Groovy Compiler 1.8, and Grails support.
      3. Now, since Grails had some problem with white space in "C:\Program Files\Grails" path, i moved it to "C:\Grails" and updated the Grails path in STS.
      4. Now, if i Run/Debug my Grails project. It shows the below error.

      "The archive: C:/Program Files/Grails/grails-2.0.1/lib/org.codehaus.groovy/groovy-all/jars/groovy-all-1.8.6.jar which is referenced by the classpath, does not exist."

      I have tried few other STS instance, but all show the same issue.

        Activity

        Hide
        ashipj Ashish P J added a comment -

        Adding : Everything works fine, if i try running my grails project from command-prompt. The issue occurs only when try Run/Debug the project through STS.

        Show
        ashipj Ashish P J added a comment - Adding : Everything works fine, if i try running my grails project from command-prompt. The issue occurs only when try Run/Debug the project through STS.
        Hide
        ashipj Ashish P J added a comment -

        This is fixed. The issue was inside
        windows > Preferences > Java > Installed JRE

        I was pointing it to jre. Actaully it has to point to a JDK.

        Show
        ashipj Ashish P J added a comment - This is fixed. The issue was inside windows > Preferences > Java > Installed JRE I was pointing it to jre. Actaully it has to point to a JDK.
        Hide
        ashipj Ashish P J added a comment -

        Sorry.. could't find any where to close this bug. Could someone plz close it? Thanks...

        Show
        ashipj Ashish P J added a comment - Sorry.. could't find any where to close this bug. Could someone plz close it? Thanks...
        Hide
        aclement Andy Clement added a comment -

        thanks for indicating you resolved it.

        Show
        aclement Andy Clement added a comment - thanks for indicating you resolved it.

          People

          • Assignee:
            Unassigned
            Reporter:
            ashipj Ashish P J
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: