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 trialGabriel E
8,916 PointsHow 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
14,630 PointsHey 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:
- open intelliJ and go to file>project structure
- on the left menu select SDK's
- check list to the right if it is showing 1.8 and JDK home path when selected.
- 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
deckey
14,630 PointsHi 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!
Gabriel E
8,916 PointsWhere 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
14,630 PointsHi 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
Gabriel E
8,916 PointsThanks Deckey, Sorry, what I meant was that I downloaded JDK, but I'm not sure where to find it in my files for IntelliJ.
Gabriel E
8,916 PointsHow 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
Gabriel E
8,916 PointsGabriel E
8,916 PointsThanks got it!!!