I compiled my jar and got the following:
java.io.FileNotFoundException: Employees\firstname lastname.txt (The system cannot find the path specified)
Exception in thread "main" java.lang.NullPointerException
at EmployeeList.createEmployees(EmployeeList.java:127)
at EmployeesWindow.<init>(EmployeesWindow.java:64)
at ScheduleBuilder.<init>(ScheduleBuilder.java:17)
at Start.main(Start.java:7)
My file path looks like this:
File file = new File("Employees\\" + tempfirst + " " + templast + ".txt");
The folder is located here and contains a bunch employees text files:
F:\Programming\Schedule Builder\Employees
How can I fix this so that I do not get this error?