Transcript for:
Step-by-Step Guide to Java Project in Eclipse

Hi guys, in this video I will show you how to create a new Java project in Eclipse. Navigate to the menu and select File, New, Java Project. On the new pop-up, enter a project name. I will select my first Java app. Then at the bottom, click the Next button. On this page, Uncheck the checkbox for create module info.java. Then click finish. This will generate the new Java project. On the top left corner, select the two windows which opens the package explorer. Here you can see the Java project. Expand the project and you will see a source folder. This is the folder where all the Java classes will go. Right click on the folder and then select new. and class. Here enter a class name. I will pick the name main. Note that by convention in Java all classes start with an uppercase letter. At the bottom click the check box for public static void main. This will generate the main function which is the entry point to the problem. Click finish. And now you can see this generated a new file with a Java class and the main method. In Java functions are called methods. Now in Java the class name always matches the file name. Here you can see it's main.java and this matches the class name. Next I add a statement to output a message system. Out.println and in double quotes I enter hello world. This will now output the string hello world to the console. Right click on main and select run as java application. Now you can see on the console it outputted hello world. Congratulations you created your first java project. Thank you for watching!