Käyttämäsi selain on vanhentunut. Vanhentuneet selaimet ovat tietoturvariski. Sivusto ei välttämättä näy oikein selaimellasi. Lue lisää.

You are using an outdated browser. Outdated browsers are a security risk. This website might not work correctly on your browser. Read more.

How to get started


Create yourself an account to the Test My Code (TMC) server in address https://tmc.mooc.fi/user/new

If you already have an account in TMC, you do not need a new one. Ensure that you remember your password by logging in to https://tmc.mooc.fi/.

If you have trouble accessing your account your try logging in into our old server https://tmc.mooc.fi/mooc/.

Installation of the programming environment

In the course we’ll be using version 8.2 of the NetBeans Integrated Development Enviroinment and the TMC plugin to download and submit the programming assignments. NetBeans requires Java development kit (JDK) to be installed.

As an alternative to NetBeans, you may use Jetbrains’s IntelliJ IDEA. Both the commercial Ultimate version and the free Community edition of IntelliJ IDEA will work with our TMC plugin.

NOTE: If you have an old version of NetBeans on your computer, we recommend that you remove it before installing the new version. When the installation procedure asks if the old setting should be imported, answer “no”.

Does the installation of Java to your computer cause a security risk? Not directly. The use of JDK and NetBeans do not cause any risk. The risks involved with Java are related to certain Web-pages that use Java-based components. Nothing we do in this course can cause any security risk to your computer. The installation of JDK also installs a Java plugin to your internet-brower. It might be wise to disable that plugin. For more information, see http://krebsonsecurity.com/how-to-unplug-java-from-the-browser/.

  1. Installing JDK (the same whether you’re using Netbeans or IntelliJ)

    If you already have JDK 8 installed, go directly to step 2.

    Note that if you have JDK 9 installed, please still install JDK 8 and set it as your primary Java version as Netbeans does not support JDK 9 yet.

    Download the most recent version of JDK “Java SE Development Kit 8uxx” from the address http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html. If you are a Linux user, see the information below!

    Accept the licence, select a suitable version for you computer and do the installation.

    • In Windows the installation proceeds similarly as installations of any Windows program.

    • In macOS, the installation resembles installation of any dmg-package. NOTE: you need Mac OS X 10.8 (Mountain Lion) or a more recent OS X/macOS -version. Oracle provides detailed information about the installation https://docs.oracle.com/javase/8/docs/technotes/guides/install/mac_jdk.html. If installation complains about developer id, see http://support.apple.com/kb/ht5290.

    • 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-8-jdk which can be done in command line with the command sudo apt install openjdk-8-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.

Next, choose one of 2a or 2b Depending on which programming environment you’re using

2a. Installing NetBeans

JDK must be installed before installing NetBeans.

Download the NetBeans/TMC-bundle suitable for your computer by right clicking and selecting “save link as”:

2b. Installing IntelliJ IDEA

The IntelliJ IDEA plugin is still in development, and it is provided to you as an open beta. You are less likely to encounter problems using the NetBeans plugin. We recommend that those new to programming use NetBeans.

If you feel comfortable using a not-yet-ready product, we ask you to kindly submit any feedback you have, as well as details on any problems you encounter to us via email at mooc@cs.helsinki.fi. This will help the active development of this product.

First, download IntelliJ IDEA Community version. Choose your operating system and in the address linked, press the Download button.

Then, download the TestMyCode plugin:

When IntelliJ opens for the first time, you get to a welcome screen. At the bottom, choose Configure / Plugins. At the bottom of the window that opens, choose “Browse repositories” and type “TMC” to the search field. Install “TestMyCode plugin for IntelliJ” and restart the program.

Completing and submitting the programming assignments with Netbeans or IntelliJ

If you’re using Netbeans with TMC, the first time you start it, a login window should open. If it does not open, you can find it from the TMC / Settings. If you’re using IntelliJ, you get to a Welcome screen, in which you can press the “Get started with TMC” button.

  1. Login with the Username and Password that you gave during registration.

  2. Select the organization “MOOC” from the opening list of organizations.

  3. Select the course “2013 Object-oriented programming, part I” from the opening list of courses.

  4. Press then “OK” from the settings screen. You should get a window of downloadable exercises.

  5. By pressing “Download” the assignment “projects” are downloaded to your computer.

The next video shows how to program and submit the assignments using TMC/NetBeans. The process is mostly the same in IntelliJ, but with one important distinction: The first time you open up an exercise, you need to set the JDK that you installed earlier. IntelliJ should ask you to give it, but if not, you can set it from File / Project Structure at “Project SDK” part. This step is not required for those that use NetBeans.

The video is a bit outdated, so the login process and course selection differs from the current version.

Now you are finally ready to start the course!