Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java

Giflib project - Unable to start the daemon process.

When I try to run my Giflib project (from the Spring basics course) i get the error Unable to start the daemon process. It worked fine last night but this morning it won't work.

I have tried to delete the .gradle files, set the "VM options" to -Xmx512m, Invalidate caches / Restart and clear memory on my computer and nothing so far has worked. Any ideas?

3 Answers

Since you tried everything from StackOveflow...

I guess the next step would be to check if the problem is related to one Gradle project or all of them.

In order to do that try to git clone giflib project one more time in another directory and try to Import Project with Gradle once again, to see if it works.

Are you using Intellijdea BTW? Latest?

I am using IntelliJ Idea 2016.2.5 It didn't work. Now i tried to start over with my program, checking if that would work, but get the error right away

Gradle 'IdeaProjects' project refresh failed Unable to start the daemon process. This problem might be caused be incorrect configuration of the daemon. For example, an unrecognized jvm opiton is used...

Are you new to Gradle ?

Have you checked this wonderful workshop of setting up Gradle step-by step ?

https://teamtreehouse.com/library/dependency-management-with-gradle

Try that one first, and create project like in a Workshop, may be some initial setup was wrong ..

I see that as a best solution so far, since there is no simple way to solve the problem, especially remotely. Someone has to see locally what is wrong with your machine.

I think that the problem comes because when you create project, you may have specified to use local Gradle distribution, and because your .gradle file and settings are not good enough, the project fails.

I feel that setting that use default gradle wrapper should solve problem,

see workshop video at 03:11 below

https://teamtreehouse.com/library/introducing-gradle

If you are having troubles with Intellijidea, please check out the 'Local Development Environments' course here:

https://teamtreehouse.com/library/local-development-environments

Both Gradle and Intellijidea courses are necessary tools to help you in building Web Apps.

You can also join 'Java Web Development' Track as well. Awesome collection of courses that will step-by-step help you in building web apps with Spring

https://teamtreehouse.com/tracks/java-web-development

I do not know how or why but all of a sudden it works! I think it was a wrong click on the gradle setup & that sometime i accidentally pressed on the gradle offline button. Anyways thank you so much for your help!