Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Java Local Development Environments How it Works Check Your Installation

Aaron Chen
Aaron Chen
4,102 Points

what's wrong with my paste here?

did exactly what the video instructed. why can't I pass?

results.txt
# Paste your info below
Aarons-MacBook-Air:~ aaronchen$ 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)
Mathew Tran
Mathew Tran
Courses Plus Student 10,205 Points

Hey Aaron

The challenge just wants the output and not the function call -- however, it looks like even with just the output it doesn't work.

I have a few guesses as to why:

  • The Java challenge does not like the format that the mac spits out
  • Java version "9" raises a red flag. It's not following versioning standards.
  • build 9+181 raises a red flag. It's not following versioning standards.

Here is what I get when entering java -version in my console (and it passes):

java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b15)
Java HotSpot(TM) 64-Bit Server VM (build 25.91-b15, mixed mode)

To investigate a bit further, could I get you to provide a screenshot?

Thanks!

Matt

1 Answer

Aaron Chen
Aaron Chen
4,102 Points

Hi Matt,

Thanks. I copied someone else's answer to pass this challenge.

Can I leave the screenshot here? Can't seem to find a place to insert image though.

Aaron

Mathew Tran
Mathew Tran
Courses Plus Student 10,205 Points

Looks like you will need to host the image somewhere and use markdown to show it.

Markdown for Images alt text