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

Registration

Create yourself an account to the Test My Code (TMC) server in address https://tmc.mooc.fi/mooc/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/mooc/.

Installation of the programming environment

In the course we’ll be using version 8.1 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 7 or newer installed, go directly to step 2.

    Download the most recent version of JDK “Java SE Development Kit 7uxx” from the address http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.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 OS X (Mac), the installation resembles installation of any dmg-package. NOTE: you need Mac OS X 10.7.3:n (Lion) or a more recent OS X -version. Oracle provides detailed information about the installation http://docs.oracle.com/javase/7/docs/webnotes/install/mac/mac-jdk.html If installation complain 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-7-jdk which can be done in command line with the command sudo apt-get install openjdk-7-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. 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, the below 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.

tmc-settings

Give the Username and Password that you gave during registration.

Press the button “refresh list” and select course from “Current course”.

By pressing “ok” 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.

Now you are finally ready to start the course!