Working with Eclipse

Switch off the unfortunate default DOS line endings:

Window > Preferences > General > Workspace > "New text file line delimiter"