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 Hibernate Basics Getting Started with Hibernate Configuring a Project to Use Hibernate

Gowtham Pendyala
Gowtham Pendyala
199 Points

How to resolve the gradle build error in Intellij

intellij error

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0

6 Answers

Seth Kroger
Seth Kroger
56,414 Points

It look more like a warning that a setting was ignored than an outright error. The rest of the build should have proceeded fine, and you should see the Hibernate libraries if you open up the source sets on the right (in the gradle window) and the External Libraries on the left (Project window).

You should be able to get rid of the warning by going to either 1) Settings > Build, Execution, Deployment > Build Tools > Gradle and remove the option mentioned in the warning from the VM options at the bottom or 2) your ~/.gradle/gradle.properties file and remove said option.

Gowtham Pendyala
Gowtham Pendyala
199 Points

No it is not just a warning. It is a gradle build failure. I couldnt see any gradle libraries. I think it has got something to do with the vm options which I am unable to resolve

Seth Kroger
Seth Kroger
56,414 Points

Did you look in the places I suggested to find where that option is set?

Gowtham Pendyala
Gowtham Pendyala
199 Points

I did look into the places you suggested. The vm options column is completely empty.

This is the error message that I get when I am trying to build a new gradle project

Error: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 https://docs.gradle.org/2.9/userguide/gradle_daemon.html

Please read the following process output to find out more:

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0

Seth Kroger
Seth Kroger
56,414 Points

What about environment variables? Is there a JAVA_OPTS set?

Alexander Nikiforov
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Alexander Nikiforov
Java Web Development Techdegree Graduate 22,175 Points

Did you try this Stackoverflow solution: http://stackoverflow.com/questions/20471311/android-studio-unable-to-start-the-daemon-process.

Disregard the line: Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0 It is just a warning. It is unrelated. You have problem starting daemon process.

Gowtham Pendyala
Gowtham Pendyala
199 Points

No the JAVA_OPTS variable is not set. What value do I need to set it to?

Gowtham Pendyala
Gowtham Pendyala
199 Points

Chris Ramacciotti Could you please help me to solve this error?

Chris Ramacciotti
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Chris Ramacciotti
Treehouse Guest Teacher

Hi Gowtham! Do you get this error upon importing an existing Gradle project, or upon creating a new one? And, do you have Gradle installed on your machine, or are you using the Gradle wrapper? If you haven't taken steps to install Gradle, then you'd want to use the wrapper. And, I'd suggest this route anyway since it helps with sharing your project with others.