How to Create First Java Program in Eclipse

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys in this video I'm going to show you how you can download and install Eclipse IDE on your windows 11 operating system so Eclipse IDE is one of the most famous Ides for developing Java programs but it also have the support for different programming languages for example C and C plus plus PHP JavaScript and other languages so let's see how we can download and install Eclipse IDE so because eclipse is a Java based IDE you need to have Java installed on your windows 11 operating system but nowadays Eclipse IDE comes bundled with Java GRE so if you don't have Java it's okay because Eclipse IDE will come with the bundled JRE so if you have already installed Java that is okay but if you don't have a Java jdk installed then also it's okay so first of all just open your favorite browser and search for Eclipse IDE and the first link which will appear here will be from eclipse.org forward slash IDE so I'm going to click on this link and once you are inside this eclipse.org website you will be able to see this kind of web page here right so you can see uh what Eclipse IDE can do and on the top I can see this download button here so I'm going to click on the download button and when I click on the download button I will be redirected to the downloads page here and here I can see get Eclipse IDE download button on the top It also says Eclipse installer now includes the GRE for Mac OS windows and Linux so just click on the download button here and then it's going to redirect you to this web page where you can click on the download button which is going to start the download of this Eclipse IDE so I'm going to wait for the download to complete so once this executable file is downloaded I'm going to just click on this executable file and let me minimize my browser and now I can see that this installer is starting and now you can see see this Eclipse installer has been started so let me just maximize it so you can see this so when Eclipse installer starts you need to select for which purpose you want to uh use Eclipse IDE so the most famous and popular is Eclipse IDE for Java developers but if you want to use Eclipse IDE for C plus plus or PHP or for other programming languages you can choose that from this list right I'm going to install Eclipse IDE for Java so I'm going to choose the first option which is Eclipse IDE for Java developers and when you click on this you will be able to see this window now when you come to the next window you will see uh this section here so because I have already installed Java jdk on my windows 11 operating system eclipse is going to recognize that and it's going to show you the path to the jdk folder if it's not present it's going to show you all these links here so you can choose the top link from this list so I'm going to choose the jdk folder which I already have installed if you don't know how to install Java jdk on your windows 11 operating system I have already created a video on that so I'm going to put the link in the description so you can follow that video this is the installation folder for Eclipse so if you don't have the good reason to change it just leave it as default and then click on install and first of all you will see uh this license terms and agreement page so if you want you can read this page and then click on accept now which is going to start the installation of Eclipse IDE so at this point you just need to wait for some time until Eclipse downloads all the packages and install them on your windows 11 operating system and when Eclipse IDE is successfully installed on your windows 11 operating system you will be able to see uh this launch button here also you will be able to see that Eclipse installer has created this desktop shortcut for us so from the next time you can click on this desktop shortcut in order to launch your Eclipse IDE so let me click on the launch button which is going to launch eclipse on my windows 11 operating system and for the first time when you start Eclipse IDE it's going to ask you to provide the workspace folder so this will be the folder where all your Eclipse project will be saved so if you don't have the good reason to change this location just leave it as default you can also check this checkbox which says use this as the default at do not not ask again and then click on launch which is going to launch the Eclipse IDE and once Eclipse IDE is launched it's going to look like this right so you have the tutorials and overview and samples here you can click on create a new project which is going to help you to create a new project and if you want to just minimize this welcome window you can click on the minimize button here which is going to minimize this welcome window and it's going to show you the Eclipse IDE overview right also I can see the Donate tab here I can close this and now it looks like this right so in order to create a new project you can either click on create a new Java project or create a new project option or you can click on the file and then click on new Option and then select from here so I'm going to select Java project from here and first of all you need to provide the name to your Java project so I'm going to name my project as hello for now and you can see this will be the default location where your project will be saved so in the next section you can select the JRE for your project right so by default eclipse is going to suggest you to use the execution environment GRE which is this one if you already have installed Java jdk separately on your windows 11 operating system you can also choose this option which says use the Project Specific JRE and from here you can select the jdk version for your project so I'm going to choose that so if you don't see any jdk version here you can just leave it as default otherwise you can select the jdk version from here and under project layout I'm going to leave it as default and then click on next button so on the next window you will see this kind of interface I will leave everything as default because this is just a sample project and then I'm going to click on the Finish button and here it's going to ask me to provide the module name I will leave it as default and then click on generate comments also and then click on create button which is going to create this project for me so now you can see this project is created and from here I'm going to just remove this Java file because I want to create my own Java class so under Source I'm going to right click once again and then click on new and then I'm going to choose this option which says class and then I can name my class so let's name our class as hello once again and then the modifier will be public so just leave it as a default and here which method stubs would you like to create I'm going to select this option which says public static void main so it's going to create the public static void main method which is the main method for Java for us and then click on finish and you can see this class is created and this public static void mean method is created right now if you want to change the font size because this font size is really small and I think you might not be able to see the code which I am writing so for changing the font and other settings you can click on window and then click on preferences and then click on General and then select appearance and you can expand this and then click on color and fonts and from here you can choose Java and then click on Java I need a text font right and then click on edit which is going to allow you to change the font and the font size so let me make it little bit bigger let me choose 18 or 16 from here and then click on OK and then click on apply and then click on apply and close you can see the font size has been increased and then I can just write a very simple code for printing hello world so from here I can just type system dot out dot println so this is the method which you use to print some text inside the double quotes I can just write hello world here and once you are done you can save this file by clicking Ctrl s and then if you want to run this project you have these buttons here so there is this debug hello.java file there is this run hello.java file you also have other tools for example run last tool so from here I'm going to press this button which says run hello.java file and it's going to run your code so first of all it's going to compile your code and then it's going to run your code here so you can see hello world is printed that means Eclipse IDE is working fine on your windows 11 operating system and then you can start using Eclipse IDE on your windows 11 operating system so that is how you can download and install Eclipse IDE on your windows 11 operating system I hope you've enjoyed this video and I will see you in the next video
Info
Channel: ProgrammingKnowledge2
Views: 84,286
Rating: undefined out of 5
Keywords: Install Eclipse, Eclipse, Eclipse IDE, Java Development Kit, JDK, Windows 11, JDK on Windows 11, Eclipse IDE on Windows 11, How to Install Eclipse, How to, Eclipse Photon, Eclipse Oxygen, javaprogramming, javabasicsforbeginners, javaprogrammingtutorial, javatutorialforbeginners, Integrated development environment, Java Development Tools, Open source, Eclipse Photon IDE
Id: xl5NCEDlkoU
Channel Id: undefined
Length: 10min 29sec (629 seconds)
Published: Mon Mar 20 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.