1 00:00:01,090 --> 00:00:05,600 In this video I'm going to show you some basics in Eclipse, 2 00:00:05,650 --> 00:00:10,030 if you have used Eclipse before, you can just skip this video. 3 00:00:20,020 --> 00:00:22,570 When you run it for the first time, 4 00:00:22,630 --> 00:00:30,490 you should choose your workspace folder. Your workspace folder will contain all of the project files 5 00:00:30,790 --> 00:00:34,000 so you want to know where it's located. 6 00:00:34,000 --> 00:00:37,970 You can select this if you don't want to be asked again. 7 00:00:52,450 --> 00:00:54,550 This is the "Welcome" window, 8 00:00:54,550 --> 00:01:00,380 you can disable it by clicking here. And I'm just going to close it. 9 00:01:02,770 --> 00:01:07,650 And the first thing you should know is how to create a Java project. 10 00:01:07,660 --> 00:01:17,980 So this is the package explorer area, and you can just right click in it, and go to New -> Java Project. 11 00:01:21,380 --> 00:01:26,590 I'll name mine "JavaP" for example. 12 00:01:26,690 --> 00:01:30,020 That's not very original but let's just go with it. 13 00:01:33,690 --> 00:01:40,010 Then I'm going to go to the source package and add a new package. 14 00:01:40,050 --> 00:01:44,970 Right click on the source package -> New -> Package. 15 00:01:44,970 --> 00:01:53,220 One tip here: there is a naming convention in Java, that says that packages should start with a lowercase 16 00:01:53,280 --> 00:01:58,270 letter, and classes should start with an upper case letter. 17 00:01:58,290 --> 00:02:07,770 I'm gonna call this one just "package1", because "package" isn't allowed for some reason. And then I'm going 18 00:02:07,770 --> 00:02:10,730 to create a Class. 19 00:02:10,790 --> 00:02:25,030 This is going to be a simple "Hello World" class. 20 00:02:25,280 --> 00:02:31,730 The first thing I'm going to show you is how to enable or disable line numbers. 21 00:02:31,760 --> 00:02:41,960 You should go to Window -> Preferences, and then General editors -> Text Editors, and here's that option 22 00:02:44,960 --> 00:02:53,300 I'm showing you this because if you're using an older version of Eclipse, your line numbers may be disabled 23 00:02:53,300 --> 00:02:54,540 by default. 24 00:02:54,590 --> 00:03:04,160 Also to choose a different font or make your letters bigger, you should go to Window -> Preferences -> Appearance -> 25 00:03:04,490 --> 00:03:15,700 Colors and Fonts, and then go to Basic, and then go to Text Font. 26 00:03:15,770 --> 00:03:22,410 I'm going to pick a bigger size and press "Apply and Close". 27 00:03:22,520 --> 00:03:27,460 Now I want to show you how to import and export classes. 28 00:03:27,590 --> 00:03:34,850 You'll need that because I'm going to save the code that we'll create in this course as classes. There 29 00:03:34,850 --> 00:03:42,080 are two options: you can export the entire project, just right click on your project, and go "Export", 30 00:03:42,170 --> 00:03:49,790 and then when you're importing it, go to this package explorer area, and click "Import". And then you'll 31 00:03:49,790 --> 00:03:57,590 find your way because it's pretty intuitive. But the way we're going to do it is: every time we finish 32 00:03:57,680 --> 00:04:04,640 a lesson I'm going to do this: I'm going to right click on the class, press "Copy", 33 00:04:07,750 --> 00:04:16,090 paste it on my desktop - or any other folder - and then I'm going to upload that file - so this .java file - 34 00:04:16,540 --> 00:04:24,420 into the lesson. You can import it by just dragging it into your package. 35 00:04:24,490 --> 00:04:28,990 Now there is already HelloWorld.java here. 36 00:04:29,080 --> 00:04:30,730 I'm going to delete that, 37 00:04:33,530 --> 00:04:43,590 and then I'm going to drop the same file into my package and then that's going to work. 38 00:04:43,590 --> 00:04:48,320 Now you have all the tools you need to start this course. 39 00:04:48,330 --> 00:04:50,520 See you in your first lesson.