Hello, in this video we are going to show you how to set up java using the eclipse ID on a Linux machine. I'm running Ubuntu, you could use a different distro as well, there might be some slight differences. Okay, so what you want to do is just simply go to the Ubuntu Software App Store. And it's very similar to the you know, the Mac App Store, the Windows app store, I'm going to type in Eclipse, go down here, I've already got it installed. Otherwise, you'd have an install option, select install, once that, you know, began installing, you should be all good to go. One thing I do want to quickly mention is you may or may not have the JDK, you know the Java Development Kit or the Java Runtime Environment installed, if you do not, if you get that error that you don't when you try not to just do sudo att dash get in store.
Default GDK click and tap will ask you for your password in the console, like so. So when you actually type it won't appear but it is you know actually keeping track of it clearly have one password in wrong. caps lock is on there we go. Okay, so I've already you know installed and I recently just done it right now before the video just to make sure you it was up today. That's the command you would need. Okay, so if we launch Eclipse, you want to select a workspace obviously the workspace as default workspace is basically where all of your projects will be for a particular workspace and you can split between them very easily.
So you might have, let's say, a university workspace, a particular project based workspace. From here, you want to go to create a new Java project. So select that. And you want to name it, some of them to name tutorial, leave everything as default. Click Finish. And it says we need a module name so that is fine.
See what we got. Okay, so this maximize, we don't actually need this module. We don't want this is he wanted us to have a date when we created the project, but let's just get rid of that. Go to or I'll show you if I click Run. Now. You'll say does not contain a main Type we need to add that so go to SRC right click new class.
From here, just name our class I'm gonna name it sonar systems and my company name and select keep everything else out as default except for this. Which methods Would you like to create select public static void Main. So this is going to act as the main entry point for your application or Java application need a main method, not the road not to just one always want to click Finish. And there we go. So if we run it, we don't get any errors and it's worked successfully running. So let's just make sure so good.
So if we just do a quick print line, so system, dot out, dot print line and in here we are going to display Hello, world. And if we wouldn't know, yeah, save our file. There we go in the console we have hello world. So it is that simple to set up a Java application using Eclipse on a Linux machine. Thanks for watching. If you have any questions, feel free to reach out.
And as usual, I look forward to seeing you in the next awesome Java video.