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 Exploring Your IDE Check your IntelliJ IDEA Installation

Tim Eckert
Tim Eckert
7,011 Points

Missing Keys for Systemizer

Has something changed with Java JDK 8? I am unable to complete this assignment due to a missing key in my System.Properties...

Java Code:

package com.timothy;

import java.util.Set; import java.util.TreeSet;

public class Main {

public static void main(String[] args) {
// write your code here
    System.out.printf("The class path is: %s %n",
            System.getProperty("java.class.path"));
    Set<String> propNames = new TreeSet<String>(System.getProperties().stringPropertyNames());
    for (String propertyName : propNames) {
        System.out.printf("%s is %s %n ",
                propertyName,
                System.getProperty(propertyName));
    }
}

}

3 Answers

Craig Dennis
STAFF
Craig Dennis
Treehouse Teacher

Got it! Looks like you had added some whitespace to the front so it was " file.separator" and not "file.separator". I updated the tests to be more lenient!

Thanks for your patience and sorry for the frustration!

Tim Eckert
Tim Eckert
7,011 Points

Thanks! That seemed to fix it.

Craig Dennis
STAFF
Craig Dennis
Treehouse Teacher

Hey Tim Eckert !

Thanks for the ping! Do you have a key named file.separator in your results?

Sorry for the delay and frustration! We'll get to the bottom of it!

Tim Eckert
Tim Eckert
7,011 Points

I do, its the 6th key.

file.separator is \