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

It's not taking my version

I guess Java version 9 is not good enough? Bug....

results.txt
java version "9"
Java(TM) SE Runtime Environment (build 9+181)
Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)

1 Answer

andren
andren
28,558 Points

It is indeed a bug.

The reason it does not accept the version info is that Oracle changed the version string scheme that JDK uses when they released JDK version 9. Treehouse's code checker has not been updated to account for that change yet.

Here is a version string from the most recent version of JDK 8:

java version "1.8.0_152"

That will pass the challenge.

I Just found a copy online and pasted it in.... with the version you mentioned above..... It worked just fine..... Thanks for you response.....