Java Setup

Posted by admin at January 19, 2020

Setup

In this article we are going to discuss about running and installing first time in your machine, We will know how to download and install Java JDK and it’s famous IntelliJ IDEA for writing the java code.

Download Java

Java is a programming language owned and distributed by Oracle, but you can use it for free! You need to download and install the JDK or “Java Development Kit”.

  1. Go to http://www.oracle.com/technetwork/java/javase/downloads/index.html
  2. At the top of the pag eyou should see a button that looks like this:
1 javaDownload - Java Setup

If you click on that button it should take you to a page with the current list of Java downloads.

2 jdk - Java Setup

First you’ll need to click the “Accept License Agreement” radio button, then you can select the download that best fits your machine.

  1. Once you have downloaded the appropriate JDK file, you need to run the installer. To do this double click the file that you downloaded.
3 install - Java Setup

This should launch the JDK installer diaglog. It will ask you some questions, but you can just repeatedly click “next” as the default options should work fine for most developers.

4 installer - Java Setup

Download IntelliJ IDEA

There are a number of different editors you can use to write your Java code. For this course we will use IntelliJ IDEA, a free program created and distributed by JetBrains. You are welcome to use any program you prefer.

  1. Go to https://www.jetbrains.com/idea/ to download IntelliJ. If you click on the “download” button it should take you to a part of the page that describes the difference between “Ultimate” and “Community” editions. Make sure you download the community edition as that has more than enough features and is free to use for as long as you like.
5 intelliJ - Java Setup
  1. Once you’ve downloaded the intelliJ intaller find it in your files and run the program.
6 intelliJinstall - Java Setup

This should launch the intelliJ installer. You should be able to click “next” as all the default setting should work fine for most developers.

7 intelliJexe - Java Setup
  1. After you have fully installed intelliJ you should open the program. The first time you open intelliJ there are a few more set up steps you need to do.
  2. First intelliJ will prompt you to see if you want to include any setting from previous versions, chances are this is your first time using intelliJ so you should select “no”.
8 importSettings - Java Setup
  1. Then intelliJ will ask you to pick a theme. THis is completely up to personal preference. You’ll notice that in this course we use the Darcula theme.
9 theme - Java Setup
  1. Then you will be asked if you want to include any addittional plug ins. You do not need any plugins for this course, so you should be able to just select next and move on from these prompts.
10 plugins - Java Setup
  1. Now you should be taken to the intelliJ editor. It will ask you what you want to do first and you should select “Create New Project”.
11 intelliJopenScreen - Java Setup

This should take you to the Create new Project prompt.

12 newProjectPrompt - Java Setup

Since this is the first time you will be writing Java with IntelliJ you need to configure IntelliJ to know where the JDK you previously downloaded is on your machine. Click the “New…” button next to the drop down and select the location of the JDK on your machine.

13 addJDK - Java Setup

Now you should be able to finish clicking through the rest of the create new project dialog!


Comments

Write a Reply or Comment

Your email address will not be published. Required fields are marked *