For those that have access to campus, the lab computers have the required software already setup. This page is for those that will be participating remotely or who would like the convenience of a local setup.

This page covers two major topics:

Installing Tools For Your Home Environment#

Please take the time to read the following important notice before looking for tools for your home environment.

Like most other computer science courses at ANU, this course is designed on the assumption that you will use the environment provided by ANU (physically or virtually). ANU staff provide technical support for both virtual and physical laboratory environments, and we have done our best to ensure that that environment works well in every respect. When the lab systems are not working, you should inform your tutor and report the problem via the ANU Service Desk.

All practical work for this course can be completed using freely available tools that run on most operating systems. For your convenience, we provide basic installation instructions below.

Please understand that your personal computing environment is not supported by ANU.

We cannot support your personal computing environment because each environment may differ in ways that are outside of our control.

If you plan to use your own environment, please follow these steps:

  1. Use the advice provided on these web pages to identify the appropriate tools, and how to install them.
  2. Complete the Lab 1 exercises in week one and bring any questions that arise to any of the week one labs.
  3. Use ed to seek help from others in the class.
  4. Seek help from your tutor during your scheduled lab.
  5. Seek help from your lecturer via ed or before and after lectures.
  6. Seek help from the Computer Science Student’s Association (CSSA), who explicitly set out to help their members with matters such as setting up home computers.

All of the software tools you need are provided as part of the standard environment in the Linux labs but are also freely available for Linux, Windows and MacOS X, so if you wish to work on your own computer, you can easily do so. Please read the notice above before following the instructions below.

We will do our best to support anyone using these standard tools. You are welcome to use alternatives (such as a different IDE, etc.), but you should not expect any support when you run into trouble using non-standard tools. For that reason, we strongly recommend that you stick to the supported tools unless you are confident in your ability to resolve any problems that may arise with non-standard tools. Furthermore, as the lab tests will be conducted in the lab environment, you will need to be proficient with the standard tools for the lab tests, regardless of which tools you choose to use at home.

Download Centre#

Last updated: 20/07/2023

To prepare your home environment, you will need to download and install four tools: Git, IntelliJ Idea, the Java Development Kit (JDK), and the JavaFX SDK.

This course uses the version of…

Software Version Linux Mac Windows General Download Page
JDK 17 JDK 17.0.2 x64 / JDK 17.0.2 aarch64 JDK 17.0.2 x64 / JDK 17.0.2 aarch64 JDK 17.0.2 x64 JDK Archive
JavaFX SDK 17 17.0.10 x64 17.0.10 x64 / 17.0.10 aarch64 17.0.10 x64 GluonHQ
IntelliJ Idea 2022.3.3 2022.3.3 x64 / 2022.3.3 aarch64 2022.3.3 x64 / 2022.3.3 aarch64 2022.3.3 x64 JetBrains

x64 corresponds to Intel processors, while aarch64 generally means Apple Silicon - this difference is particularly important on Macs. You may also download IntelliJ Idea 2023.x, but you need to manually switch back to the old UI if you want it to look similar to the lab computers and the lectures. For Linux on ARM processors, no JavaFX version 17 is available. You may try to use version 22, in which case you might also want to upgrade your JDK. This will likely be fine, but may cause some problems - always check that your code runs on our lab machines!

Git#

We use GitLab and Git. For this to work, you must have Git installed on your computer.

You should find this already installed on most Linux distributions, (type git --version at the command line to check).

If you are using macOS, you should first type git --version at the command line to check if you have Git installed. If this is your first time using Git, macOS will prompt you to install the command line developer tools. A pop-up window will appear asking you to install the tools. Click Install and follow the instructions. Sometimes, however, the pop-up window may not appear. In this case, you can install the command line developer tools by typing xcode-select --install at the command line. After the installation is complete, you can check if Git is installed by typing git --version at the command line.

If you’re using Windows, you will most likely need to install it yourself. Follow the instructions on the Git downloads page. If you run into trouble using Git from within IntelliJ on Windows, select File -> Settings -> Version Control -> Git, then manually set the Path to Git executable (should be something like C:\\Program Files (x86)\\Git\\cmd\\git.exe).

Side note: The most convenient way to use Git on Windows is to use Winget, a package manager for Windows. Winget is now generally pre-installed on most new Windows systems and is available on Windows Store. If you have Winget installed, you can install Git by typing winget install --id Git.Git -e --source winget.

IntelliJ#

IntelliJ is a powerful commercial IDE. We use its open source Community Edition, and at home you may either get a free student license to use the “Ultimate Edition”, or else use the open-source “Community Edition” (There is no significant difference as far as this course is concerned; the Community Edition is perfectly adequate). JetBrains has extensive online documentation, including some great video tutorials. We strongly recommend you start with their introductory video on Running IntelliJ IDEA for the First Time. The introduction to using version control systems in IntelliJ is also very helpful.

Visit the IntelliJ Idea download page and download the appropriate version for your platform (or see precise links for versions we use in the course above).

Alternatively, you can install IntelliJ Idea directly through the package manager (this may install a newer version that what we use in the course). See the Platform Guides below for more information.

Java Development Kit (JDK)#

Although you can download the JDK via this link, we recommend that you follow the specific instructions for your platform below, to download and install the JDK using your package manager or directly through IntelliJ Idea.

JavaFX SDK#

The JavaFX Software Development Kit (SDK) java library needs to be installed as a separate module to the JDK. To do this, you must download JFX for your operating system. Note that JavaFX SDK’s version number must match the JDK version, as shown in this course’s current JavaFX SDK version.

Please choose your operating system and device architecture below to download the right JavaFX SDK for your platform:

Other less popular options

Here are SDKs available for other platforms. However, these days the following platforms are comparatively less used. Please double check your platform before downloading the following SDKs. Note that this is version 22 of JavaFX, which should, but may not fully work with JDK 17.

Platform Guides#

In this section, we provide instructions for installing the tools on your specific platform. In addition to the written instructions below, we also provide several videos to guide you through the process.

Linux

Linux#

We assume you’ve already have Git installed following the instructions above.

Step 1: Install IntelliJ Idea#

If you’ve downloaded IntelliJ Idea from the JetBrains website, you can install it by following the instructions inside the downloaded package.

It can be much easier to install IntelliJ Idea using your package manager. You can follow JetBrains’ official guide.

Step 2: Install the JDK#

Linux users usually find it easier to install the JDK using their package manager. For example, on Ubuntu, you can install the JDK by typing the following command at the command line:

sudo apt install openjdk-17-jdk

Another advantage of installing the JDK using your package manager is that you don’t need to worry about setting the environment variable.

Alternatively, you can install the JDK directly through IntelliJ Idea. To do this, open a project in IntelliJ Idea, and then select File -> Project Structure -> Project. In the SDK section, click the Add SDK option and select Download JDK.

You then need to select the right JDK version that matches this course’s current JDK version. Next, pick a vendor (we recommend AdoptOpenJDK). Before clicking Download, you need to write down the path to the JDK. Please copy the Location of the JDK and paste it somewhere safe. You will need it later for setting the JAVA_HOME environment variable.

If you decide not to go with these recomended two options and want to install the JDK manually, you will need to Unzip/untar/install the JDK to an appropriate location, e.g./usr/local/java/openjdk. Please remember this path as we will use it later for JAVA_HOME. You can pick a location that’s different to our example here - just make sure you remember it!

Step 3: Install JavaFX SDK#

Next, you will need to install the JavaFX SDK. Now you should have downloaded the JavaFX SDK for your platform. Unzip/untar/install the SDK to an appropriate location, e.g. /usr/local/java/openjfx. Please remember this path as we will use it later for PATH_TO_FX. Again, you can pick a location that’s different to our example here - just make sure you remember it!

Step 4: Set up the environment variables#

You now should have recorded two paths: one for the JDK and one for the JavaFX.

Based on our example above, these are:

  • /usr/local/java/openjdk - related to the JDK
  • /usr/local/java/openjfx - related to the JavaFX SDK

You need to Set the PATH environment variable to include the bin directory of your JDK installation. If you were using the package manager to install the JDK, you can skip this step.

You will also need to set the JAVA_HOME environment variable to the top-level directory of your JDK installation.

Finally, you need to set the PATH_TO_FX environment variable to point to the lib directory of your JavaFX installation.

To edit environment variables, you need to edit the ~/.bashrc file (or other rc files which depends on the shell you are using).


... # keep other configurations in your .bashrc file

export PATH=/usr/local/java/openjdk/[CHANGEME]/bin:$PATH
export JAVA_HOME=/usr/local/java/openjdk/[CHANGEME]
export PATH_TO_FX=/usr/local/java/openjfx/[CHANGEME]/lib

Notice the [CHANGEME] part. You need to replace it with the actual path you have on your system. It might look like jdk-17.0.10 for JDK and javafx-sdk-17.0.10 for the JavaFX SDK. You can find the path by typing ls /usr/local/java/openjdk at the command line.

After setting up the environment variables, you need to reload the ~/.bashrc by typing source ~/.bashrc at the command line.

You will also need to set the PATH_TO_FX variable in IntelliJ Idea. To do this, open IntelliJ Idea and select File -> Settings... -> Appearance and Behavior -> Path Variables and then add a new path variable (select the plus sign) with name PATH_TO_FX and value equal to the path to your JavaFX installation lib directory, as we did before.

Step 5: Complete the set up#

We can do a quick check to see if everything is set up correctly (optional).

macOS

We assume you’ve already have Git installed following the instructions above.

Step 0: Prelude - Install Homebrew (optional)#

Homebrew is a package manager for macOS. It makes all the upcoming installations so much easier. You can follow the official guide to install Homebrew. However, we DO NOT provide any support for Homebrew related issues. This is an entirely optional step.

Step 1: Install IntelliJ Idea#

If you have Homebrew installed, you can install IntelliJ Idea by typing the following command at the command line:

brew install --cask intellij-idea-ce

Otherwise you can download IntelliJ Idea from the JetBrains website, as described here.

Step 2: Install the JDK#

Again, if you have Homebrew, this is how you can install the JDK:

brew install openjdk@17

Another advantage of installing the JDK using Homebrew is that you don’t need to worry about setting the PATH environment variable later.

Alternatively, you can install the JDK directly through IntelliJ Idea. To do this, open a project in IntelliJ Idea, and then select File -> Project Structure -> Project. In the SDK section, click the Add SDK option and select Download JDK.

You then need to select the right JDK version that matches this course’s current JDK version. Next, pick a vendor (we recommend AdoptOpenJDK). Before clicking Download, you need to write down the path to the JDK. Please copy the Location of the JDK and paste it somewhere safe. You will need it later for setting the JAVA_HOME environment variable.

Although we don’t recommend this, you may still decide not to go with these two options and want to install the JDK manually. You then need to unzip/untar/install the JDK to an appropriate location, e.g./Library/Java/JavaVirtualMachines. Please remember this path as we will use it later for JAVA_HOME. You can pick a location that’s different to our example here - just make sure you remember it!

Step 3: Install JavaFX SDK#

Next, you will need to install the JavaFX SDK. Now you should have downloaded the JavaFX SDK for your platform. Unzip/untar/install the SDK to an appropriate location, e.g. /Library/Java/JavaFX. Please remember this path as we will use it later for PATH_TO_FX. Again, you can pick a location that’s different to our example here - just make sure you remember it!

Step 4: Set up the environment variables#

You now should have recorded two paths: one for the JDK and one for the JavaFX.

Based on our example above, these are:

  • /Library/Java/JavaVirtualMachines - related to the JDK
  • /Library/Java/JavaFX - related to the JavaFX SDK

You need to Set the PATH environment variable to include the bin directory of your JDK installation. If you were using the Homebrew to install the JDK, you can skip this step.

You will also need to set the JAVA_HOME environment variable to the top-level directory of your JDK installation.

Finally, you need to set the PATH_TO_FX environment variable to point to the lib directory of your JavaFX installation.

To edit environment variables, you need to edit the ~/.zshrc file (or other rc files which depends on the shell you are using). If it’s the first time you are editing this file, you need to create it first. You can do this by typing touch ~/.zshrc at the command line. Then type open ~/.zshrc to open the file in your default text editor.


... # keep other configurations in your .bashrc file

export PATH=/Library/Java/JavaVirtualMachines/[CHANGEME]/Contents/Home/bin:$PATH
export JAVA_HOME=/Library/Java/JavaVirtualMachines/[CHANGEME]/Contents/Home
export PATH_TO_FX=/Library/Java/JavaFX/[CHANGEME]/lib

Notice the [CHANGEME] part. You need to replace it with the actual path you have on your system. It might look like jdk-17.0.6 for JDK and javafx-sdk-17.0.6 for the JavaFX SDK. You can find the path by typing open /Library/Java/ at the command line.

After setting up the environment variables, you need to reload the ~/.zshrc by typing source ~/.zshrc at the command line.

You will also need to set the PATH_TO_FX variable in IntelliJ Idea. To do this, open IntelliJ Idea and select File -> Settings... -> Appearance and Behavior -> Path Variables and then add a new path variable (select the plus sign) with name PATH_TO_FX and value equal to the path to your JavaFX installation lib directory, as we did before.

Step 5: Complete the set up#

We can do a quick check to see if everything is set up correctly (optional).

Windows

We assume you’ve already have Git and Windows Terminal installed following the instructions above.

Step 1: Install IntelliJ Idea#

You can download IntelliJ Idea from the JetBrains website, as described here.

Step 2: Install the JDK#

You can install the JDK directly through IntelliJ Idea. To do this, open a project in IntelliJ Idea, and then select File -> Project Structure -> Project. In the SDK section, click the Add SDK option and select Download JDK.

You then need to select the right JDK version that matches this course’s current JDK version. Next, pick a vendor (we recommend AdoptOpenJDK). Before clicking Download, you need to write down the path to the JDK. Please copy the Location of the JDK and paste it somewhere safe. You will need it later for setting the JAVA_HOME environment variable.

Alternatively, you can install the JDK manually, you will need to Unzip/untar/install the JDK to an appropriate location, e.g.C:\\Program Files\\Java. Please remember this path as we will use it later for JAVA_HOME. You can pick a location that’s different to our example here - just make sure you remember it!

Step 3: Install JavaFX SDK#

Next, you will need to install the JavaFX SDK. Now you should have downloaded the JavaFX SDK for your platform. Unzip/untar/install the SDK to an appropriate location, e.g. C:\\Program Files\\Java. Please remember this path as we will use it later for PATH_TO_FX. Again, you can pick a location that’s different to our example here - just make sure you remember it!

Step 4: Set up the environment variables#

You need to Set the PATH environment variable to include the bin directory of your JDK installation. If you were using the package manager to install the JDK, you can skip this step.

You will also need to set the JAVA_HOME environment variable to the top-level directory of your JDK installation.

Finally, you need to set the PATH_TO_FX environment variable to point to the lib directory of your JavaFX installation.

To edit environment variables, you need to first open the “Control Panel” and search for “Edit the system environment variables”. Click on “Edit the system environment variables” and then click on “Environment Variables…” button.

You will see a window with two sections: “User variables for [your username]” and “System variables”.

For the PATH environment variable, you need to edit Path in the “System variables” section. Click on “Path” and then click on “Edit…”. Then click on “New…” and add the path to the bin directory of your JDK installation. The path should look something like C:\\Program Files\\Java\\[CHANGEME]\\bin. Check it before you click “OK”.

For the JAVA_HOME environment variable, you need to create a new variable. Click on “New…” in the “System variables” section. The Variable name should be JAVA_HOME and the Variable value should be the path to the top-level directory of your JDK installation. The path should look something like C:\\Program Files\\Java\\[CHANGEME]. Check it before you click “OK”.

For the PATH_TO_FX environment variable, you need to create a new variable. Click on “New…” in the “System variables” section. The Variable name should be PATH_TO_FX and the Variable value should be the path to the lib directory of your JavaFX installation. The path should look something like C:\\Program Files\\Java\\[CHANGEME]\\lib. Check it before you click “OK”.

Notice the [CHANGEME] part. You need to replace it with the actual path you have on your system. It might look like jdk-17.0.10 for JDK and javafx-sdk-17.0.10 for the JavaFX SDK. You can find the path by revisiting the location where you installed the JDK and JavaFX SDK.

You will also need to set the PATH_TO_FX variable in IntelliJ Idea. To do this, open IntelliJ Idea and select File -> Settings... -> Appearance and Behavior -> Path Variables and then add a new path variable (select the plus sign) with name PATH_TO_FX and value equal to the path to your JavaFX installation lib directory, as we did before.

Step 5: Complete the set up#

We can do a quick check to see if everything is set up correctly (optional).

Using the Linux Lab Virtual Environments#

The School of Computing offers an option for virtualizing our standard lab environment on your own computer, and another option for remote access to the lab environment. We highly recommend that you install tools yourself (above), but if for some reason that is not possible, you may elect to use one of the following options.

Virtual Box#

The School of Computing supports a virtual machine installation of the lab environment using Virtual Box. Note that running software in a virtual machine often has a significant memory and computational overhead, so it is advised to install attempt to install the software natively first.

Accessing Lab Computers Remotely#

In addition to the above, you can directly access the Linux lab computers. You are unlikely to need to do this in COMP1110, but it is there as an option if you are comfortable working on the command line. While it is possible to tunnel an X-session across SSH to run GUI applications like IntelliJ IDEA remotely, the experience will likely not be great.

Support and Help for the Linux Lab Environment#

Since GlobalProtect and VirtualBox are all ANU-supported software platforms, if you run into trouble, you should use Service Desk to log an issue.

bars search caret-down plus minus arrow-right times arrow-up