Changed File classes to Java