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 Local Development Environments Exploring Your IDE Creating Your First Project

How Do I get New JDK Project IntelliJ in Windows???

Hi there,

I'm just starting work on the last section of Craig's course, installing IntelliJ IDEA, and creating my first project. He's using a Mac, and I'm using Windows. I successfully installed the JDK, and IntelliJ, and it even shows up in the menu when I'm trying to make a new project. It looks like this: C:\Program Files (x86)\Java\jre1.8.0_51. But when I choose that, it says it's not a valid home for the JDK. Can someone please help me with this? Thanks you!

3 Answers

deckey
deckey
14,630 Points

Hey Gabriel, not 100% sure what you are asking or trying to do... If it is about setting up IntelliJ to use specific JDK you have installed, then do this:

  1. open intelliJ and go to file>project structure
  2. on the left menu select SDK's
  3. check list to the right if it is showing 1.8 and JDK home path when selected.
  4. if nothing appears on the right panel, click small + sign to add JDK and then navigate to where you've installed it.

check this screenshot: http://postimg.org/image/6xm6izjzh/

hope it helps

Thanks got it!!!

deckey
deckey
14,630 Points

Hi Gabriel, what IDEA is asking for is JDK (Java Development Kit) and you are pointing it to JRE (Java Runtime Environment). Point IntelliJ to JDK folder on your windows, C:\Program Files\Java\jdk1.8.0_25 by default

good luck!

Where can I find the JDK? I know I downloaded the latest Java version, well, 8.0.51 at least, but all I can find in the Java folder is the JRE.

deckey
deckey
14,630 Points

Hi Gabriel, JRE you would need if you only want to run compiled Java programs. JDK you need to make those by yourself and you can download Java SE JDK from Oracle website:

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

cheers Deckey

Thanks Deckey, Sorry, what I meant was that I downloaded JDK, but I'm not sure where to find it in my files for IntelliJ.

How do I download the JDK file. I went to my downloads, and when I check windows powershell, it says I have the newest version, 8.0.60, but I don't know where to find that when I go to IntelliJ. Could you tell me how to locate it? Thanks