Sie sind auf Seite 1von 30

Intellij Install

Release 0

Elijah Hursey, Austin Keener, Matias Medal

Apr 07, 2017


Content

1 Setup 3
1.1 Download and Install Intellij . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2 Download and Install JDK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

2 General Usage 17
2.1 Creating a Java Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
2.2 Running a Java Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

3 Troubleshooting 23
3.1 Determining if your version of Windows is 32 or 64 bit . . . . . . . . . . . . . . . . . . . . . . . . . 23

i
ii
Intellij Install, Release 0

This manual aims to provide a simple step by step guide from the installation of IntelliJ through a working Hello
World! program.

Content 1
Intellij Install, Release 0

2 Content
CHAPTER 1

Setup

To be able to develop programs in Java through Intellij, a few different programs are needed.

Download and Install Intellij

1. Navigate to https://www.jetbrains.com/idea/download/ or google “install intellij” without quotes.


2. Select your operating system.

3. Click the black download button below Community as we will not be using the paid Ultimate version

4. After clicking the download button, a popup will appear asking where you would like to download the installer
to on your computer.

3
Intellij Install, Release 0

5. Select the desktop and click Save.

6. Once downloaded, double click the installer, which looks like this.

7. After double clicking the icon you may be prompted to allow the Intellij Installer to make changes to your
device. Clicking Yes is necessary for the installer to install the appropriate files to your computer’s hard drive.

4 Chapter 1. Setup
Intellij Install, Release 0

8. Click the next button to begin.

9. Select a personalized download location, or simply click next to accept the default location.

1.1. Download and Install Intellij 5


Intellij Install, Release 0

10. Create a desktop shortcut or any file type associations, or simply click next to accept the default values.

11. Specific start menu folder, or accept the default value of “JetBrains” and click next.

6 Chapter 1. Setup
Intellij Install, Release 0

12. After clicking the install button IntelliJ will begin installing using the options you selected previously. You
should see a screen that looks like this.

13. Click the checkbox beside Run IntelliJ IDEA Community Edition.

1.1. Download and Install Intellij 7


Intellij Install, Release 0

14. Now click Finish.

You Are Done!

Download and Install JDK

To actually develop Java, we require the Java Development Kit or JDK for short. This is a package that contains the
tools needed to compile, debug, and test code written for Java. We will need to download the kit from Oracle.
1. Navigate to http://www.oracle.com/technetwork/java/javase/downloads/index.html to find the latest Java related
downloads.
2. Click the Java Platform (JDK) link.

8 Chapter 1. Setup
Intellij Install, Release 0

3. To download the JDK you must accept Oracle’s Binary Code License Agreement for Java SE. If you decide not
to accept the license agreement, you cannot download the JDK and will not be able to develop Java.

1.2. Download and Install JDK 9


Intellij Install, Release 0

4. Select the download for your specific operating system. You should only download one file. If you do not know
what version of Windows you are running, jump to Setup - Downloading the JDK.

5. After clicking the download button, a popup will appear asking where you would like to download the installer
to on your computer.
6. Select the desktop and click Save.

10 Chapter 1. Setup
Intellij Install, Release 0

7. Once downloaded, double click the installer, which looks like this.

8. After double clicking the icon you may be prompted to allow the JDK Installer to make changes to your device.
Clicking Yes is necessary for the installer to install the appropriate files to your computer’s hard drive.
9. Once the installer has launched, click next and follow the instructions displayed in the installer.

1.2. Download and Install JDK 11


Intellij Install, Release 0

10. Once the install has finished, we need to setup the Environment Variables for the JDK, specicially:
JAVA_HOME. To do so, first locate the install path of the JDK. If use did not change the install path in the
JDK Installer and it used the default location then you can find it at C:/Program Files/Java/. Within this folder,
you will find a folder called jdk1.8.0_XXX where XXX is the specific build. The latest version available at the
time of this writing was 1.8.0_121, so our path is: C:/Program Files/Java/jdk1.8.0_121 as shown below.

11. After you have determined the path to your JDK install, we need to actually set the Environment Variable.
This can be done by opening the Start Menu and typing environment variables and selecting ‘Edit the system
environment variables. This will cause a window to pop open.

12 Chapter 1. Setup
Intellij Install, Release 0

12. Click the Environment Variables button at the bottom of the window to open the Environment Variable settings.

1.2. Download and Install JDK 13


Intellij Install, Release 0

13. In the second section titled System Variables, click the New button to add a new environment variable.

14 Chapter 1. Setup
Intellij Install, Release 0

14. In the box that pops open, you need to provide both the Variable name and Variable value. Insert
JAVA_HOME‘as the ‘Variable name and insert the path to your JDK directory as the Variable value. Ours
was C:/Program Files/Java/jdk1.8.0_121/, however yours may be different. We found this value in step 10!

15. After inserting the values, click the Okay to finalize your input for the new environment variable.
16. If you check, you should now see the JAVA_HOME entry in the System Variables. Click the Okay button to save
the changes to your environment variables and close the window.

1.2. Download and Install JDK 15


Intellij Install, Release 0

That’s it, you’ve completely setup the JDK! Now with both Intellij and the Java Developer Kit setup you are ready to
proceed to Setting up a Java Project in Intellij!

16 Chapter 1. Setup
CHAPTER 2

General Usage

Creating a Java Project

1. Double click on the IntelliJ icon to launch it.

2. Click ‘Create New Project’

17
Intellij Install, Release 0

3. If you haven’t already downloaded the JDK, jump to Setup - Downloading the JDK. Otherwise, in the New
Project window, click the new button to specify the location of the JDK which you downloaded earlier. If
already specified, jump to step 5.

4. Locate your JDK installation, it should be location in C:/ProgramFiles/Java/JDK1.8

18 Chapter 2. General Usage


Intellij Install, Release 0

5. Check the ‘Create project from template’ box and select ‘Command Line App’

6. Click next and provide a name for your new project.

2.1. Creating a Java Project 19


Intellij Install, Release 0

Running a Java Project

1. Once you have created your project your IntelliJ window should look like this.

2. Copy the following example code from https://pastebin.com/raw/F026AY39 and paste it into IntelliJ for the
following steps.

20 Chapter 2. General Usage


Intellij Install, Release 0

3. To Run the project, simply click on the green play button at the upper right hand corner of the screen.

4. If your program was run successfully it should look like this.

Congratulations, you have successfully completed your first java project in IntelliJ. You have taken the first few steps
in the road to becoming an IntelliJ master.

2.2. Running a Java Project 21


Intellij Install, Release 0

22 Chapter 2. General Usage


CHAPTER 3

Troubleshooting

Determining if your version of Windows is 32 or 64 bit

1. Press the windows button and type ‘computer’ without quotes.

23
Intellij Install, Release 0

24 Chapter 3. Troubleshooting
Intellij Install, Release 0

2. Press Enter.

3. Right-click on ‘This PC’.


4. Click on ‘Properties

3.1. Determining if your version of Windows is 32 or 64 bit 25


Intellij Install, Release 0

5. You can see what bit you have by looking next to ‘System type:’ below ‘Installed memory (RAM):’.

26 Chapter 3. Troubleshooting

Das könnte Ihnen auch gefallen