grailscompiler-errorsgrails-2.4

Grails - Forked Grails VM exited with error when compiling


It happens when grails tries to compile the project, when --stacktrace and --verbose are used it shows the same output. I tried to reinstall the plugins and grails. I'm using grails 2.4.3

Here's the error:

Running without daemon...
Compiling 230 source files
Parent process shutdown. Exiting...
Error Forked Grails VM exited with error

Solution

  • The problem that you have is that you don't know what is wrong. In order to find the real problem I recommend you change in grails-app/conf/BuildConfig.groovy the parameter: grails.project.fork for this:

    grails.project.fork = [
        compile: false,
        test: false,
        run: false,
        war: false,
        console: false
    ]
    

    Try again and you will see the real problem.