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 trialVladislav Kobyakov
9,439 PointsHow to pass this challenge?
Am I pasting the output incorrectly? Here is what I get and it's completely right: (Code version attached)
java version "9" Java(TM) SE Runtime Environment (build 9+178) Java HotSpot(TM) 64-Bit Server VM (build 9+178, mixed mode)
But then a bummer pops up saying "That output doesn't look correct. You sure you ran java -version?" I have no idea how else I have to paste it. I've tried it very differently many times.
# Paste your info below
java version "9"
Java(TM) SE Runtime Environment (build 9+178)
Java HotSpot(TM) 64-Bit Server VM (build 9+178, mixed mode)
1 Answer
Steve Hunter
57,712 PointsHi there,
I'm not sure what you're running that on but I thought the latest version of Java was 1.8.0_144? I've not done the update yet, so I'm at 1.8.0_141. For me, running java -version
gives me:
java version "1.8.0_141"
Java(TM) SE Runtime Environment (build 1.8.0_141-b15)
Java HotSpot(TM) 64-Bit Server VM (build 25.141-b15, mixed mode)
I don't think the compiler recognises Java "9".
Steve.
Steve Hunter
57,712 PointsSteve Hunter
57,712 PointsYou must be on a beta release of Java. I'd suggest just copying my message above and progressing with the course!
Steve.
Vladislav Kobyakov
9,439 PointsVladislav Kobyakov
9,439 PointsThank you Steve! What's with the version 9 then? Even if it is beta, I think there will be no significant difference with working with it I guess. Although when I run
find /Library/Java/
it shows me that I have the 8th version of Java.Steve Hunter
57,712 PointsSteve Hunter
57,712 PointsThere will be differences but at our level we won't need to worry about them!
The path to the relevant bits of Java is usually C:\Program Files\Java (on a Windows machine).