How can you set files to save automatically when launching an application?
Click Window (Eclipse) -> Preferences -> Run/Debug -> Launching, and then select Save required dirty editors before launching.
Click Window (Eclipse) -> Preferences -> Java -> Editor -> Save Actions
Change the project's run configuration.
Click File -> Save All.