Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Tool Instructions

On the Programming 2 course, we use the following tools:

  • Java Development Kit (JDK), a software development kit that includes, among other things, the Java compiler and the Java Virtual Machine for running Java programs.

  • Git, a version control system (VCS) that enables source code versioning and collaboration between developers.

  • IntelliJ IDEA, an integrated development environment (IDE) for developing and debugging Java programs and more. We use the free Community Edition of IntelliJ IDEA.

  • SceneBuilder, a helper tool for creating JavaFX user interfaces.

The above programs are pre-installed in the Agora computer classrooms. If you have your own computer, we strongly recommend installing them there as well. In particular, completing the project work is much easier when all required tools are available on your own computer.

The officially supported operating systems for this course are Windows, macOS, and Linux. Installing the tools on ChromeOS may be possible, but unfortunately we cannot provide support for that operating system. For this reason, we do not recommend using ChromeOS.

Select your operating system below.

Select your operating system from the options above.

Prerequisites

Select your operating system from the options above.

Git

Select your operating system from the options above.

IntelliJ IDEA

Select your operating system from the options above.

Disabling IntelliJ IDEA AI Assistance

IntelliJ IDEA includes two AI-powered code completion features: AI Assistant and Inline Completion. These attempt to automatically complete code as you write.

You can disable these features as follows.

  1. Disabling AI Assistant
  • Settings → Plugins
  • Select the Installed tab
  • Find JetBrains AI Assistant
  • Disable the plugin or uninstall it completely
  1. Disabling Inline Completion
  • Open IntelliJ IDEA to the Welcome to IntelliJ IDEA screen

  • Select Configure → Settings in the lower-left corner

  • Navigate to:

    Editor
    → General
    → Code Completion
    → Inline
    
  • Uncheck:

    Enable inline completion using language models
    
  • Save the settings.

Java Development Kit (JDK)

  • Open IntelliJ IDEA and wait until the Welcome to IntelliJ IDEA screen appears.

  • Click New Project in the middle or upper part of the window.

  • In the dialog that opens, click the JDK drop-down menu and select Download JDK....

  • Configure the download as follows:

    • Version: 25
    • Vendor: Microsoft OpenJDK Do not change the path shown in the Location field. Finally, click Select.
  • Leave the remaining project settings unchanged.

  • Click Create in the lower-right corner and allow the project to load.

    This opens the IntelliJ IDEA development environment.

    Downloading the JDK may take some time. Wait patiently until all errors and red text disappear.

  • When the project has loaded successfully and no errors are visible, run the project using the Play button in the upper-right corner.

  • Wait for the project to compile.

    If everything works correctly, a console window should appear at the bottom with output similar to:

Hello and welcome!

i = 1
i = 2
i = 3
i = 4
i = 5
  • You may now close IntelliJ IDEA.

SceneBuilder

Select your operating system from the options above.

What Next?

Congratulations!

You now have all the tools required for the course and can continue to the course materials.

Common Problems and Solutions

I get the error error: illegal character: '\ufeff' when running a Java project in my IDE.

A problem may occur if you imported settings from JetBrains Rider. Rider settings are not completely compatible with Java development, and IntelliJ IDEA may not automatically fix the resulting issues.

Try the following:

  1. Open IntelliJ IDEA and return to the Welcome to IntelliJ IDEA screen.

If an old project opens automatically, select: File → Close Project

  1. Open: Configure → Settings

  2. Navigate to: Editor → File Encodings

  3. Set: Create UTF-8 files to: with no BOM

  4. Save the settings.

  5. Create a new project and try running a simple program.

Internal error: com.intellij.platform.ide.bootstrap... Process "C:\...idea64.exe" is still running and does not respond

Another possible cause is that Rider is stuck running in the background.

Try the following:

  1. Close IntelliJ IDEA completely.

  2. Open Rider.

  3. Close Rider.

  4. Start IntelliJ IDEA again.