Daily Archives: December 21, 2025
Install Oracle JDK in Ubuntu 24.04
Step : 1 Download Oracle JDK 8
Under the “Linux” section, download the Linux x64 Compressed Archive (.tar.gz) file
Step 2: Extract and Move the JDK
Create a directory to install Java in, for example, /usr/lib/jvm/ (if it doesn’t exist):
sudo mkdir -p /usr/lib/jvm
Navigate to your Downloads folder and move the downloaded .tar.gz file to the new directory. (Replace jdk-8uXXX-linux-x64.tar.gz with your actual filename):
sudo mv ~/Downloads/jdk-8uXXX-linux-x64.tar.gz /usr/lib/jvm/
Navigate to the install directory and extract the archive:
cd /usr/lib/jvm/
sudo tar -zxvf jdk-8uXXX-linux-x64.tar.gz
Step 3: Configure Java Alternatives
Use the update-alternatives command to register the newly installed Java executables with the system
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.8.0_XXX/bin/java" 1
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.8.0_XXX/bin/javac" 1
Step 4: Set the Default Java Version
If you have multiple Java versions installed, use this command to select Oracle JDK 8 as the default system-wide Java
sudo update-alternatives --config java
Step 5: Set the JAVA_HOME Environment Variable
Open the /etc/environment file using a text editor (like nano or vim) with sudo privileges:
sudo emacs /etc/environment
Add the following line at the end of the file, replacing the path as needed (ensure it points to your JDK directory, not the bin folder to JAVA_HOME), For bin folder amend in PATH variable as shown below.
JAVA_HOME="/usr/lib/jvm/jdk1.8.0_XXX"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/jdk1.8.0_471/bin"
Reload the environment variables:
source /etc/environment
Step 6: Verify the Installation
java -version
echo $JAVA_HOME
Installing Forticlient VPN in Ubuntu
To install Forticlient VPN first download the Forticlient VPN only .deb Installer

Go to the last section of Forticlient Website and select Forticlient VPN-only
Once downloaded the .deb file then execute the below command to install. Here the gr is my user
sudo apt install /home/gr/Downloads/forticlient_vpn_7.4.3.1736_amd64.deb
Once dependencies are resolved and package installed then you can open forticlient.
Let me know if you are facing any Issues with Forticlient
To Uninstall
sudo apt autoremove --purge forticlient

