peer
peer

Reputation: 364

Cannot create grails projects in STS but from command line

I have recently started to work with grails. I was able to create applications and generate stuff. Yesterday I wanted to resume my work, after a little break and ran into the following error, when trying to create a new project:

Command terminated with an exception:    
org.grails.ide.eclipse.longrunning.client.GrailsProcessDiedException: Grails process died
(see details for partial output)
Grails process died
------System.out:-----------

------System.err:-----------

This error only occurs when I use the SpringSourceTool, if I try using the command line it works fine. My first reaction was to change the java version from 1.8 to 1.7, but that didn't help. My environment variables look like this (I am running Fedora Linux 19)

JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.0.x86_64
GRAILS_HOME=/home/peer/grails/grails-2.3.0

They are also included in the PATH variable.

Can anybody help? Thanks, Peer

Upvotes: 2

Views: 3167

Answers (2)

Beezer
Beezer

Reputation: 1108

For anyone pulling their hair out trying to create a grails project using the STS extension for Grails, here is my setup and following is what I did to get it working:

-- OSX 10.8.4 Build 12E3067 -- -- STS Version 3.4.0 -- -- Grails 2.3.3 (installed separately to STS) --

  1. Fresh installed STS 3.4.0
  2. I *de*selected the Preferences/Groovy/Compiler/Enable checking for mismatches between project and workspace Groovy compiler levels
  3. I ONLY selected the Grails Support option when installing the extensions (nothing else)
  4. Restart STS 3.4.0 (i.e. restart eclipse)
  5. I then pointed my Grails project to my existing Grails 2.3.3 installation
  6. Make sure that the environment variable GRAILS_HOME is set and exported in the same shell from which you invoke STS otherwise you will get a process termination error in Eclipse (STS)

This worked.

Upvotes: 0

L_7337
L_7337

Reputation: 2748

This is a known issue in STS:

https://issuetracker.springsource.com/browse/STS-3277

A work-around is provided in the link.

Upvotes: 2

Related Questions