Lets share love

How ? copy url of this blog and share in your social network :) simple

Lets share love

How ? copy url of this blog and share in your social network :) simple

Wednesday, March 16, 2016

Error initializing classpath: Unable to start the daemon process. | grails 3

$ grails run-app
Error |
Error initializing classpath: Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at http://gradle.org/docs/2.3/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
 (Use --stacktrace to see the full trace)

The above error occurred while running grails app

$ grails -version
|Grails Version: 3.0.0
|Groovy Version: 2.4.3
|JVM Version: 1.7.0


and this problem was solved by adding this code to gradle.properties

-Xmx3072m -XX:MaxPermSize=524m

Hope it saves your time.