From the course: Java 8+ Essential Training: Objects and APIs

How to use the exercise files - Java Tutorial

From the course: Java 8+ Essential Training: Objects and APIs

Start my 1-month free trial

How to use the exercise files

- This course is accompanied by exercise files that you can use to follow along with the demonstrations on-screen. I've copied the exercise files to my desktop, but you can place them anywhere on your computer. The exercise files are organized by chapter, with one folder for each chapter, and then one sub-folder for each video. Within that folder, you'll find a folder that's structured as an IntelliJ IDEA project. It's marked by the existence of a source directory and this is where you'll find all of the code for the project. Back in the project directory, there's also an IML file. That's an IntelliJ IDEA configuration file, and then a .idea folder. On Windows that folder is visible. On Mac, if you look at this directory in Finder, you won't see it but it is there. It contains additional configuration files. To use any of these projects, you'll want to work with IntelliJ IDEA. This course was recorded with Version 2017.3, but you should be able to use this or any later version. To open any of the projects, select the open link from the welcome screen, then navigate to your desktop if that's where you copied the files. You can press Control D on Windows or Command D on Mac to jump to the desktop directory. Then go to your exercise files directory to the chapter and video directory, and then the project directory should be marked by the IntelliJ IDEA icon. Select it and you should be ready to program. If this is your first time using IntelliJ IDEA, you might have to configure the Java SDK. Go to the menu and select File, Project Structure, and then make sure that you have a Project SDK marked as 9.0. The assumption is that you have Java 9 installed. If you don't have that version installed, you'll want to take a moment and install it now. Also for each project, make sure that the project language level is set to nine. This will ensure that you can use the most contemporary syntax. After checking those for each project, you should then be able to run the application. I'll click the run button on the toolbar, and after a moment, the app will run. After you've run the application on your computer, a directory named Out should appear in the project window. It might not appear right away, but it does exist and it contains your compiled bytecode files. In my recordings, you'll sometimes see that the Out directory is already there, even though I haven't included it in the exercise files. The exercise files directory also has the finished versions for each exercise. They're under the Solutions directory, and you'll find the same set of chapter and video directories, and then the same projects as in the main directory. You can use these projects either to compare the finished version to the beginning version for any project, or you can simply go to the finished version and review the code.

Contents