javafx requires one to set directory path