Home » How to Run Java Program in Eclipse

How to Run Java Program in Eclipse

by Online Tutorials Library

How to Run Java Program in eclipse

In this section, we learn how to run a Java program in eclipse step by step.

Step 1: Open Eclipse and click File > New > Java Project.

How to Run Java Program in eclipse

Step 2: Provide the Project Name and click on the Finish button.

How to Run Java Program in eclipse

Step 3: In the Package Explorer (left-hand side of the window) select the project which you have created.

How to Run Java Program in eclipse

Step 4: Right-click on the src folder, select New > Class from the submenu. Provide the Class name and click on Finish button.

How to Run Java Program in eclipse

Step 5: Write the program and save it.

How to Run Java Program in eclipse

Step 6: Now, press Ctrl+F11 or click on the Run menu and select Run or click on Run button.

How to Run Java Program in eclipse

Step 7: Output

How to Run Java Program in eclipse


Next TopicJava Tutorial

You may also like