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

Christopher Janke
Christopher Janke
11,054 Points

Need help with java -version code challenge

Below after running the java -version it is not accepting my results even though it is Java 8. No option for skipping the challenge either, which I would prefer not to do anyway. If I misunderstood the question please let me know. I think maybe this is a bug though. Please help! Thanks!

results.txt
# Paste your info below
chris@chris-s5713w ~ $ java -version
openjdk version "1.8.0_91"
OpenJDK Runtime Environment (build 1.8.0_91-8u91-b14-3ubuntu1~16.04.1-b14)
OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)

2 Answers

when I do java -version on my pc

C:\Users\MarkM>java -version
java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)


your is saying openjdk instead.   I suspect you the challenge is looking for ORACLE jdk by you downloaded a different jdk ... download and install ORACLE jdk and you should be able to pass the challenge


if this answers your question, please mark question as answered
Christopher Janke
Christopher Janke
11,054 Points

I had to copy your output to get it to work. Thanks!