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

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