How do I compile a java program using Eclipse? I thought it would compile automatically when I try to save it. But, it doesnt seems to do so. To test it, i removed a letter from the word "public" in a statement and tried to save it. It saved without any errors. i tried rebuilding project, didnt help. Whats wrong and where?