Moved the path to the file to Gateway.java from main.java