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
Tracy Cano
Java Web Development v2 Techdegree Student 8,275 PointsJava 21 output is being rejected by challenge
I installed Java 21 and ran java -version in Terminal. My output is:
java version "21.0.12.1" 2026-08-18 LTS Java(TM) SE Runtime Environment (build 21.0.12.1+1-LTS-4) Java HotSpot(TM) 64-Bit Server VM (build 21.0.12.1+1-LTS-4, mixed mode, sharing)
I pasted these results into results.txt, but the challenge says the output doesn't look right. Is there a specific format the challenge checker expects?
java version "21.0.12.1" 2026-08-18 LTS
Java(TM) SE Runtime Environment (build 21.0.12.1+1-LTS-4)
Java HotSpot(TM) 64-Bit Server VM (build 21.0.12.1+1-LTS-4, mixed mode, sharing)