Eclipse tutoria...login
Eclipse tutorial
author:php.cn  update time:2022-04-13 14:09:28

Eclipse runner



Run Java programs

We can quickly run Java programs in the Package Explorer view

.

Package Explorer View:

Right-click the java class that packages the main function and select Run As > Java Application

Similarly, you can also select Include in the Package Explorer view main method of the class and press the shortcut key: Alt + Shift + X, J

The following two methods can create a new Run Configuration (run configuration) We can use it to start Java application.

If the run configuration has been created, you can start the Java application by selecting Run Configurations in the Run menu, click the name of the run configuration, and then click the Run button of the Java application.

run1

The Run option in the Run menu can restart a previously started Java application.

run_program_2

Restart the previously launched Java application. The shortcut key is Ctrl + F11.

php.cn