When running game through game engine, FileNotFoundException is thrown and game crashes. This does not happen when running game through terminal.
Problem solved. Game engine used different file system. Changed paths to file to change dynamically based on game engine.