Thủ thuật

Hướng dẫn cài đặt java sdk và Intellij IDEA

Hướng dẫn cài đặt Intellij

Install Java

Windows

  1. Java JDK is available at Download Java
A screenshot of a cell phone

Description automatically generated
  • After download, run the .exe file and follow the instructions to install Java on your machine. Once you installed Java on your machine, you have to setup environment variable.
  • Go to Control Panel -> System and Security -> System.
    Under Advanced System Setting option click on Environment Variables as highlighted below.
A screenshot of a cell phone

Description automatically generated
  • Now, you have to alter the “Path” variable under System variables so that it also contains the path to the Java environment. Select the “Path” variable and click on Edit button as highlighted below.
A screenshot of a social media post

Description automatically generated
  • You will see list of different paths, click on New button and then add path where java is installed. By default, java is installed in “C:\Program Files\Java\jdk\bin” folder
A screenshot of a social media post

Description automatically generated
  • Click on OK, Save the settings and you are done !! Now to check whether installation is done correctly, open command prompt and type java -version. You will see that java is running on your machine

MAC

1. Install Homebrew

2. Install Java

  • Open terminal
  • Type: brew cask install java
  • Verify it: brew cask info java

- You should see something like below, I have perform the installation when JDK 13 is out.

A screenshot of a social media post

Description automatically generated

Installing IntelliJ IDEA

Windows

There is a Community Edition that is available for a free download

This image has an empty alt attribute; its file name is Screen-Shot-2020-06-03-at-10.09.03-PM-1024x450.png
  • Open the .exe and choose next
This image has an empty alt attribute; its file name is Screen-Shot-2020-06-03-at-10.12.09-PM-1024x800.png
  • Choose default install location and menu
This image has an empty alt attribute; its file name is Screen-Shot-2020-06-03-at-10.14.18-PM-1024x788.png
  • Choose to associate .java files (unless you don’t want to, this will make a double click of a .java file open in IDEA)
  • Choose the run checkbox, so we can finish installation
  • Leave the default chosen for importing (again unless you do have files)
  • Choose “Skip Remaining and Set Defaults”

Finally, if you get warned about Firewall access. Choose allow (unless you are feeling paranoid)

MAC

Choose the Mac OSX tab and click the Download Community ( free download )

Open the .dmg folder and move the IDEA app into your applications folder

Alternatively, you can install IntelliJ Community Edition using the brew command

brew cask install intellij-idea-ce

You Might Also Like

Leave a Reply

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