Eclipse Running a Program
Running a Java Program
We can run Java programs in the Package Explorer view
You can quickly run Java programs in the Package Explorer view.
Package Explorer view:
Right-click the Java class containing the main function and select Run As > Java Application
You can also select the class containing the main method in the Package Explorer view and press the shortcut: Alt + Shift + X, J
Both of the following ways can create a new Run Configuration (run configuration) We can use it to launch Java applications.
If a run configuration has already been created, you can select Run Configurations in the Run menu to launch a Java application, click the name of the run configuration, and then click the Run button.
The Run option in the Run menu can restart a previously launched Java application.
The shortcut to restart a previously launched Java application is Ctrl + F11.