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 The Java Virtual Machine

Fail when trying to get another property? -resolved by OP

Working in Systemizer.java file. I looked thru the properties as listed out by the 'for' loop and picked another property to print out with the following code.

System.out.printf("The Java version is: %s %n", 

When I run it I get the following error:

com/teamtreehouse/Systemizer.java:18: error: cannot find symbol

symbol: class java
location: class Systemizer

Please let me know why this is failing? It looks to be correct when compared to the first line Craig added to the code in the video.

Also of note: the 'class' word in the failed line of code is highlighted red; unlike when 'class' is used in the first "java.class.path"... And I believe I just fixed my own problem by seeing I didn't put the quotes "" around the java.class.version... ugh!

I will leave this post as it might help another new programmer struggling to remember proper line structure.

The corrected code is as follows:

System.out.printf("The Java version is: %s %n",

1 Answer

Craig Dennis
Craig Dennis
Treehouse Teacher

Thanks for sharing it though! I'm sure you're not the only one!