1 00:00:00,000 --> 00:00:09,241 [MUSIC] 2 00:00:09,241 --> 00:00:13,231 So far, we've done all of our learning in work spaces and 3 00:00:13,231 --> 00:00:17,484 run all of our programs by typing commands into the console. 4 00:00:17,484 --> 00:00:22,310 These days instead of using the console most programming is done using 5 00:00:22,310 --> 00:00:25,845 an integrated development environment, or IDE. 6 00:00:25,845 --> 00:00:30,986 You can think of an IDE as basically the Microsoft Word of writing code. 7 00:00:30,986 --> 00:00:35,992 It underlines misspellings, highlights errors, and even has auto-complete. 8 00:00:35,992 --> 00:00:40,240 But most of all it just makes programming a lot easier. 9 00:00:40,240 --> 00:00:44,020 One popular IDE for Java is IntelliJ IDEA, 10 00:00:44,020 --> 00:00:48,340 which we'll be using in this course and you should start using going forward. 11 00:00:48,340 --> 00:00:51,190 If you don't already have it, take a minute to download it. 12 00:00:51,190 --> 00:00:52,600 There is a link below in the teacher's notes. 13 00:00:54,150 --> 00:00:58,050 Once you've got IntelliJ, there's just a few steps to set it up. 14 00:00:58,050 --> 00:01:02,510 Let's pick Do not import settings, then hit OK. 15 00:01:02,510 --> 00:01:09,817 Then let's go to the bottom, and click Accept to agree to the Privacy Policy. 16 00:01:09,817 --> 00:01:11,953 Then on the Data Sharing screen, 17 00:01:11,953 --> 00:01:16,547 you can either send them your usage statistics or you can not send them. 18 00:01:16,547 --> 00:01:18,195 I'll choose to send them. 19 00:01:18,195 --> 00:01:20,451 Finally, we need to pick a theme. 20 00:01:20,451 --> 00:01:24,167 I'll pick the light theme, but you are free to choose whatever you'd like. 21 00:01:24,167 --> 00:01:27,630 Then let's click Skip Remaining and Set Defaults. 22 00:01:27,630 --> 00:01:31,826 Nice, we are all setup and ready to create our first project. 23 00:01:31,826 --> 00:01:35,365 Let's get started with the Create New Project button, 24 00:01:35,365 --> 00:01:37,709 which helps us configure a project. 25 00:01:37,709 --> 00:01:41,789 On the first screen we need to pick which type of project we are making. 26 00:01:41,789 --> 00:01:44,795 It's already set to Java, which is good. 27 00:01:44,795 --> 00:01:49,987 But it looks like we're missing an SDK, which is not so good. 28 00:01:49,987 --> 00:01:53,302 SDK stands for Software Development Kit, and 29 00:01:53,302 --> 00:01:58,148 it's a set of files that defines what something is and how it works. 30 00:01:58,148 --> 00:02:02,650 In our Microsoft Word example, an SDK will be kind of like a dictionary. 31 00:02:02,650 --> 00:02:05,148 It defines what words are allowed and 32 00:02:05,148 --> 00:02:09,187 tells us how those words can be combined to make sentences. 33 00:02:09,187 --> 00:02:12,803 In the Java world, instead of an SDK, 34 00:02:12,803 --> 00:02:16,879 we have the JDK, or Java Development Kit. 35 00:02:16,879 --> 00:02:21,097 And luckily, IntelliJ is nice enough to include a download link. 36 00:02:21,097 --> 00:02:23,871 Let's click that, and then on the web page, 37 00:02:23,871 --> 00:02:26,215 click the Download button at the top. 38 00:02:29,089 --> 00:02:34,057 Then, click Accept License Agreement and download the JDK for 39 00:02:34,057 --> 00:02:36,033 your operating system. 40 00:02:36,033 --> 00:02:41,349 So for me, I'll pick Mac OS. 41 00:02:41,349 --> 00:02:44,622 Once the JDK is downloaded, you'll need to install it. 42 00:02:47,678 --> 00:02:49,511 I'll double click on the icon. 43 00:02:52,078 --> 00:02:56,243 Which brings me to the installer, 44 00:02:56,243 --> 00:03:00,273 click Continue, pick Install. 45 00:03:00,273 --> 00:03:02,546 Now I'll need to put in the admin password. 46 00:03:07,827 --> 00:03:09,150 And now we've got the JDK. 47 00:03:10,180 --> 00:03:14,960 Now that we've got the JDK, we just need to tell IntelliJ where to find it. 48 00:03:14,960 --> 00:03:19,031 Alternatively, we can just hit Cancel and 49 00:03:19,031 --> 00:03:24,808 then Create a New Project, and IntelliJ will find it for us. 50 00:03:24,808 --> 00:03:28,199 Let's click Next, And 51 00:03:28,199 --> 00:03:33,014 then choose to create the project using the Command Line App template. 52 00:03:33,014 --> 00:03:37,282 This template gives us a simple Java application with a main method, 53 00:03:37,282 --> 00:03:38,913 just like we're used to. 54 00:03:38,913 --> 00:03:43,955 Let's hit Next again, and then give our project a name. 55 00:03:43,955 --> 00:03:50,131 Let's go with MyFirstProject and move onto the Project location. 56 00:03:50,131 --> 00:03:53,454 This is where the project will be stored on your computer. 57 00:03:53,454 --> 00:03:58,058 By default all projects will be stored inside of a folder named after 58 00:03:58,058 --> 00:03:59,037 the project. 59 00:03:59,037 --> 00:04:03,307 And that folder will be stored in the IdeaProjects folder. 60 00:04:03,307 --> 00:04:07,744 Though you can change where a project is stored, by either typing a new location, 61 00:04:07,744 --> 00:04:09,944 or clicking the three dots on the right. 62 00:04:12,845 --> 00:04:15,907 The last thing we need to do, is set the package name. 63 00:04:15,907 --> 00:04:19,960 Typically, this would be the reverse of your company's URL. 64 00:04:19,960 --> 00:04:25,677 So for me, that would be com.teamtreehouse. 65 00:04:25,677 --> 00:04:29,730 Though the package name isn't super important unless you plan on publishing 66 00:04:29,730 --> 00:04:31,260 your app. 67 00:04:31,260 --> 00:04:37,470 So for now let's all just use the same package name com.teamtreehouse. 68 00:04:37,470 --> 00:04:41,604 Finally, let's click finish and IntelliJ will create the project. 69 00:04:41,604 --> 00:04:44,936 And if the directory doesn't exist, it'll create that too. 70 00:04:47,410 --> 00:04:52,228 In the next video, we'll see what was created and run our new project.