How can I compile a Java program in Eclipse without running it?

Jonas picture Jonas · Oct 30, 2010 · Viewed 291.5k times · Source

I would like to compile my Java program in Eclipse but not to run it. I can't understand how to do it.

How can I compile a Java program to .class files in Eclipse without running it?

Answer

Cristina picture Cristina · Oct 30, 2010

You can un-check the build automatically in Project menu and then build by hand by type Ctrl + B, or clicking an icon the appears to the right of the printer icon.