string(175) "LC_CTYPE=C.UTF-8;LC_NUMERIC=en_US.utf8;LC_TIME=C;LC_COLLATE=C;LC_MONETARY=C;LC_MESSAGES=C;LC_PAPER=C;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=C;LC_IDENTIFICATION=C" string(6) "PART1B" Objektorienteeritud programmeerimine (Narva Kolledž) - Kursused - Arvutiteaduse instituut
Arvutiteaduse instituut
  1. Kursused
  2. 2017/18 kevad
  3. Objektorienteeritud programmeerimine (Narva Kolledž) (P2NC.01.083)
EN
Logi sisse

Objektorienteeritud programmeerimine (Narva Kolledž) 2017/18 kevad

  • Home
  • Materials
  • Grading
  • Source Example
  • Links
Session 1

Install Java and IntelliJ

In this course, we are going to use JDK and IntelliJ.

Useful link: Watch the video in youtube if you need the subtitles.

Step 1. Install Java development kit (JDK)

(If you already have JDK 8 or 9 installed, go directly to step 2.)

  • Go to Java downloads webpage: here.
  • Accept the licence.
  • Select the most recent version of JDK “Java SE Development Kit 9.0.4” and a suitable version for your computer.
  • Download and install:
    • In Windows the installation proceeds similarly as installations of any Windows program. (If you have a 32-bit Windows, install JDK “Java SE Development Kit 8”).
    • In Mac OS X 10.8+, the installation resembles installation of any dmg-package. If you need help, look here.
    • In most Linux distibutions you get JDK directly from the packet management. In Debian based distributions (eg. in Ubuntu) it is enought to install the package openjdk-9-jdk which can be done in command line with the command sudo apt install openjdk-9-jdk -y or by using the Synaptic Package Manager. In the case that your distribution does not provide a suitable JDK, you can do the installation by extracting the .tar.gz-file found on the Oracle page.

Useful link: How to Install JDK 9 (on Windows, Mac OS & Ubuntu)'''

Step 2. Install IntelliJ IDEA

There are many different editors that you can use to write your Java code. In this course, we will use IntelliJ IDEA - a Java integrated development environment for developing computer software.

Choose your operating system, download the Community version and install the program:

  • Windows: the installation is done by opening the downloaded executable file.
  • Mac OS X: the installation is done the same way as any .dmg package. Move the IDEA app inside the downloaded package to your Applications folder.
  • Linux: the installation is done by executing the installation script via the command ./bin/idea.sh in the directory where the file is located. The script can be executed only if it has been given right permissions eg. with command chmod +x bin/idea.sh.
* In Ubuntu, the execution permissions can be given using the File browser by right clicking the script and selecting Properties / Permissions / Allow executing file as program. After doing this, the script can be executed by clicking it.

Useful link: Check the hotkey combinations here.

Session 1
  • Arvutiteaduse instituut
  • Loodus- ja täppisteaduste valdkond
  • Tartu Ülikool
Tehniliste probleemide või küsimuste korral kirjuta:

Kursuse sisu ja korralduslike küsimustega pöörduge kursuse korraldajate poole.
Õppematerjalide varalised autoriõigused kuuluvad Tartu Ülikoolile. Õppematerjalide kasutamine on lubatud autoriõiguse seaduses ettenähtud teose vaba kasutamise eesmärkidel ja tingimustel. Õppematerjalide kasutamisel on kasutaja kohustatud viitama õppematerjalide autorile.
Õppematerjalide kasutamine muudel eesmärkidel on lubatud ainult Tartu Ülikooli eelneval kirjalikul nõusolekul.
Courses’i keskkonna kasutustingimused