Recipe 4.9 Running Your Code

     

4.9.1 Problem

You want to run your code.

4.9.2 Solution

Select one of the following items in the Run menu:


Run Run Last Launched

Runs the last launched program


Run Run History

Enables you to select programs to run from a submenu


Run Run As

Enables you to select how to run a programwith the Java Applet, Java Application, JUnit Test (discussed in Chapter 5), or Run-time Workbench


Run Run

Enables you to set the launch configuration and run your code

4.9.3 Discussion

Before running your code, save your files, or Eclipse will prompt you to do so. The general way to run your code is to select Run Run As, and then choose the way you want to run your code from the submenu: Java Applet, Java Application, JUnit Test, or Run-time Workbench (used to run plug-ins under development).

The Run Run History and Run Run Last Launched menu items give you handy shortcuts for running recent programs.


4.9.3.1 Eclipse 3.0

Eclipse 3.0 adds another option to the Run Run As submenu: JUnit Plug-In Test. Eclipse 3.0 makes JUnit available for plug-in development.

4.9.4 See Also

Chapter 5 on JUnit testing; Chapter 2 of Eclipse (O'Reilly).



Eclipse Cookbook
Inside XML (Inside (New Riders))
ISBN: 596007108
EAN: 2147483647
Year: 2006
Pages: 232
Authors: Steve Holzner

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net