Difference between revisions of "Team1/Running your programs"
Ladanzahir (talk | contribs) |
Ladanzahir (talk | contribs) |
||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
===11. Running Your Program=== | ===11. Running Your Program=== | ||
11.1. Make sure that your project has a class that includes the main() method.<br /> | 11.1. Make sure that your project has a class that includes the main() method.<br /> | ||
− | + | [[Image:Run1.jpg|400px ]]<br/><br/> | |
− | 11.2. In the package explorer, select your project, right click and select "Run As", then choose Java Application (because we are creating an application not an applet). | + | 11.2. In the package explorer, select your project, right click and select "Run As", then choose "Java Application" (because we are creating an application not an applet).<br/> |
+ | [[Image:Run2.jpg|600px ]]<br/><br/> | ||
+ | 11.3. As our sample application writes to console, the result of running this application is shown on the console view.<br /> | ||
+ | [[Image:Run3.jpg|700px ]]<br/><br/> | ||
+ | 11.4. If the main function takes arguments, they can be specified in run configuration, by selecting "Run Configuration" from "Run As" menu.<br/> | ||
+ | [[Image:Run4.jpg|600px ]]<br/><br/> | ||
+ | 11.5. In the Run Configuration Window, select Arguments tab and set the variable values there (this sample application does not need Arguments).<br/> | ||
+ | [[Image:Run5.jpg|600px ]]<br/><br/> |
Latest revision as of 17:16, 30 January 2011
11. Running Your Program
11.1. Make sure that your project has a class that includes the main() method.
11.2. In the package explorer, select your project, right click and select "Run As", then choose "Java Application" (because we are creating an application not an applet).
11.3. As our sample application writes to console, the result of running this application is shown on the console view.
11.4. If the main function takes arguments, they can be specified in run configuration, by selecting "Run Configuration" from "Run As" menu.
11.5. In the Run Configuration Window, select Arguments tab and set the variable values there (this sample application does not need Arguments).