English 中文(简体)
Eclipse - Running Program
  • 时间:2024-09-17

Ecppse - Running Program


Previous Page Next Page  

Running a Java Program

The quickest way to run a Java program is by using the Package Explorer view.

In the Package Explorer view −

    Right cpck on the java class that contains the main method.

    Select Run As → Java Apppcation.

The same action can be performed using the Package Explorer view by selecting the class that contains the main method and cpcking Alt + Shift + X, J.

Either actions mentioned above create a new Run Configuration and use it to start the Java apppcation.

If a Run configuration has already been created you can use it to start the Java apppcation by selecting Run Configurations from the Run menu, cpcking on the name of the run configuration and then cpcking on the Run button.

Java Apppcation

The Run item on the Run menu can be used to restart the java apppcation that was previously started.

Restart Java Apppcation

The shortcut key to launch the previously launched Java apppcation is Ctrl + F11.

Advertisements