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

Ryan Walsh
Ryan Walsh
3,178 Points

Java is installed, but the challenge won't accept the results of "java -version" from OSX

Java is successfully installed, however pasting in the results of:

java -version

is not passing the challenge.

results.txt
# Paste your info below
java version "10" 2018-03-20

2 Answers

Hey Ryan! I dont know much about this, but i think you have perhaps pasted the wrong code. Try to go to your command prompt and type "Java -version", Then copy the first line of code that appears. It should look something like this: java version "1.8.0_131". Hope this helps!

Ryan Walsh
Ryan Walsh
3,178 Points

My machine is currently running Java 10. This was the issue. I just change the version by hand in the reply to get past the challenge.