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 How it Works Check Your Installation

Carlos Quiles
Carlos Quiles
4,739 Points

Console doesn't recognize my answer

I'm trying to paste the result after running the java -version.

I get the output similar to the video but when I Paste it I get it as fail. I'm not sure if it is because of the version 9 or I'm doing it wrong. I have tried to modify the output in different ways but it always appears as wrong. maybe I'm doing the command wrong.

Sorry for any repeated or misspelled word, my English is not so good.

Thanks for the help in advance.

results.txt
Microsoft Windows [VersiΓ³n 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Reservados todos los derechos.

C:\Users\Albert>java -version
java version "9"
Java(TM) SE Runtime Environment (build 9+181)
Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)

C:\Users\Albert>

It's because your running Java 9. Java 9 is a recent release and it seems the challenges haven't been updated to recognize the output yet.

Use this one for Java 8 instead, it will pass the challenge.

java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)