The JDK classes Path and Paths are since java 1.7. OptaPlanner currently is required to be compatible with JDK 1.6, so those can't be used.

Just use "new File(diretoryFile, fileName)"