Installing OpenJDK 11
TomTom Digital Cockpit is written in Kotlin, which is designed to fully interoperate with the Java virtual machine, by compiling to Java bytecode. TomTom Digital Cockpit requires OpenJDK 11 (Open Java Development Kit), which is a free and open-source implementation of the Java Platform. Other OpenJDK versions may work, but have not been tested and will not be supported by TomTom.
OpenJDK for Ubuntu
To install it, run the following command in a terminal:
sudo apt install openjdk-11-jdk
You might already have other versions of JDK installed. Verify this by running:
sudo update-java-alternatives -l
If you see the following output, then you only have OpenJDK and you are all set:
java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64
If you see multiple Java versions in the output, you need to make sure you have the correct one set as the default:
sudo update-java-alternatives -s java-1.11.0-openjdk-amd64
Then you can verify that the correct Java version is in use by running:
java --version
You should see output similar to this:
1openjdk 11.0.17 2022-10-182OpenJDK Runtime Environment (build 11.0.17+8-post-Ubuntu-1ubuntu220.04)3OpenJDK 64-Bit Server VM (build 11.0.17+8-post-Ubuntu-1ubuntu220.04, mixed mode, sharing)
OpenJDK for Mac
Adoptium Temurin JDK Java version 11 can easily be installed on Mac using Homebrew:
brew tap AdoptOpenJDK/openjdkbrew install --cask adoptopenjdk11
Other alternatives of the OpenJDK can also be used, as long as they are Java version 11.
OpenJDK for Windows
Download the OpenJDK installer from Adoptium Temurin JDK:
- Select
Temurin 11 (LTS)
as Version. - Click
Latest release
to start downloading the JDK file with.msi
extension. - Verify that the downloaded
.msi
file hasjdk
in its name, notjre
.
Open the downloaded .msi
file, to install the JDK:
- During installation, when you arrive at
Custom Setup
screen, press the cross next toSet JAVA_HOME
settings and select:Will be installed on local hard drive
.
- When finished installing, open the command prompt to make sure you are now using
OpenJDK 11
:
java -version
- You should see output similar to this:
1 openjdk version "11.0.13" 2021-10-192 OpenJDK Runtime Environment Temurin-11.0.13+8 (build 11.0.13+8)3 OpenJDK 64-Bit Server VM Temurin-11.0.13+8 (build 11.0.13+8, mixed mode)
Next step: Accessing TomTom Digital Cockpit SDK Example Sources