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

JAVA_HOME environment vriable not defined how to sol this problem

invalid Gradle JDK configyration found. JAVA_HOME environment vriable not defined how do i solve this problem

2 Answers

Corey Johnson
PLUS
Corey Johnson
Courses Plus Student 10,192 Points

What operating system are you using? Making the assumption you are on Windows.. you would add like to:

  1. Locate the "My PC" or "My Computer" icon. How you find this will differ based on your Windows version. For Windows 10, i go to start menu and then just type "My PC" and it will show up
  2. Right click on "My PC" or "My Computer" and then select "advanced system settings" on the left side bar.
  3. On the advanced tab, down at the bottom, click the "Environment Variables" button.
  4. In the "User variables for your username" section at the top, click the "New..." button.
  5. For the variable name enter JAVA_HOME and for the variable value browse to the root dir of where you installed the Java JDK. Select the root dir of the JDK.. not the bin dir or anything deeper.

Hope this helps. If you are using a different OS let me know.

thanks for the help but where willl i get the root dir of JDK