< Day Day Up > |
Recipe 1.10 Running Your Code1.10.1 ProblemHow do you run Java code from Eclipse? 1.10.2 SolutionSelect Run Run As. In the list that appears, select one of the following items: Java Applet, Java Application, JUnit Test, or Run-time Workbench. 1.10.3 DiscussionTo run the code developed over the previous few recipes, select Run Run As Java Application (Eclipse will prompt you to save the file if you haven't already done so). Figure 1-13 shows the results, with the output of our code, Stay cool., appearing in the Console view at the bottom.
Figure 1-13. Running Java codeAnd that's it—you've developed and run your first Java example. |
< Day Day Up > |