In step 5, I would click the "public static void main(String args)" checkbox.
Joined: Oct 24, 2010
You've used "compiling" to be the same as "running," which isn't entirely correct. I don't know if Eclipse allows one to compile Java source code to class files without running the project. It seems not, but maybe I just haven't figured out how, and in spite of its title, this How To doesn't show me.
Learning Java using Eclipse on OpenSUSE 11.2
Linux user#: 501795
Greg Brannon wrote:I don't know if Eclipse allows one to compile Java source code to class files without running the project.
Yes, it does this. By default is does this automatically every time you save the java source file. You can change this in the Preferences under General | Workspace. If you turn off automatic builds, you can right-click a project and select Build Project.