Installing Additional Software

Installing OpenJDK (Java)

While Java is not pre-installed in Qwak Workspaces, setting it up is straightforward with the following steps:

  1. Open a Terminal Window in your Qwak Workspace. You can do this by navigating through the workspace's interface to launch a terminal session.
  1. Download the Java binary. You can obtain the tar.gz compressed Java binary for your preferred version via command line. While the example below uses Java 11, you can access other versions from OpenJDK Downloads.
wget https://download.java.net/java/GA/jdk11/9/GPL/openjdk-11.0.2_linux-x64_bin.tar.gz
  1. Extract the downloaded file to uncompress the Java installation package
tar -zxvf openjdk-11.0.2_linux-x64_bin.tar.gz
  1. Set up Java environment variables. Designate the extracted directory as JAVA_HOME and append it to your $PATH to enable Java command execution from anywhere.
export JAVA_HOME=/home/qwak/jdk-11.0.2
export PATH=$JAVA_HOME/bin:$PATH
  1. Apply the changes to your shell environment by reloading the .bashrc configuration.
source ~/.bashrc

Following these steps, Java will be installed and ready for use within your Qwak Workspace, enabling you to run Java applications and develop Java-based projects.