If you are sharing a project which would be edited both in Windows and Unix systems, then its best to set the New text file line delimiter settings for eclipse to Unix. To do this Open Eclipse preferences from Windows->Preferences. Navigate to General -> Workspace and then for the “New text file line delimiter” choose radio button “Other” and from the list select “Unix”. Also since eclipse by default is not using file encoding UTF-8, its best to set that also while you are doing this. Under “Text file encoding” choose radio button “Other” and from the list select “UTF-8”.