JDK configuration is mostly a one-time configuration for a machine until you get a new laptop or did a hard-format for the OS.

Not every engineer by heart remember these steps and keywords to setup the Environment Variables. Therefore, this will be a quick-guide for any one from an Intern to Senior Lead.

Set the following user environment variables (== environment variables of type user variables)

  • JRE_HOME : %JAVA_HOME%\jre
  • CLASSPATH : .;%JAVA_HOME%\lib;%JAVA_HOME%\jre\lib
  • PATH : your-unique-entries;%JAVA_HOME%\bin (make sure that the longish your-unique-entries does not contain any other references to another Java installation folder.


Most of the times, we tend to search this up when a new laptop is being given to you from your workplace. After facing the requirement for several times and have to go through several documentations, thought of drafting this in one sheet for the reference of anyone who needs it to resolve in one-go.

Step 1: Get the GitBash installed in your PC/Laptop

Step 2: Open the command line/terminal

Step 3: Set your username

git config --global user.name “FIRST_NAME LAST_NAME”

Step 4 : Set your email address

git config --global user.email “sample@example.com”

Step 5: Check for the updated username…

Though the Ubuntu environments comes with OpenJDK, You have the authority to remove the OpenJDK and Install OracelJDK based on your requirement. Follow the steps below;

Remove OpenJDK,
execute the following command on terminal:
$ sudo apt-get remove openjdk*

Remove OpenJDK along with dependencies,
execute the following command on terminal:
$ sudo apt-get remove --auto-remove openjdk*

Remove OpenJDK and it’s configuration files,
xecute the following command on terminal:
$ sudo apt-get purge openjdk*

Remove OpenJDK along with dependencies and it’s configuration files, execute the following command on terminal:
$ sudo apt-get purge --auto-remove openjdk*

This is how you can uninstall OpenJDK.

Verify the uninstall by executing the following in the terminal
(Restart, if required)
$ java -version

To install the OracleJDK refer:
Install Oracle JDK 1.8 and Set environment variables in Ubuntu

Step-by-step guide on installing JDK8(Version 1.8)

Some of the environments or projects you work with may specifically need the Java8 (JDK-1.8) for the references. In such instances, the ideal solution is to download the jdk.tar.gz file from the oracle.com and install it from the terminal without depending to apt-get or any other.

The following is the step-by-step guide of how to install and set the environment-variable paths successfully.


Download the JavaSE Development Kit 8 from the given link below.
URL : https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html (Linux x64 : jdk-8u211-linux-x64.tar.gz)

Download the above tar.gz file to “/home/hirosht/Downloads”.
(You might have to login to the Oracle Account to download)

Ps: If…

Gestures / Multi-Touch enabling on Ubuntu with Fusuma


Please make sure that the ‘Xorg’ display server is being used.
To verify if the Xorg is being used, enter the following code snippet in the terminal.


If the response printed in ‘x11’, then the account is logged in as Xorg.
If you see ‘Wayland’, quite obviously, the display server in use is Wayland. Then you have to switch the display server.


First of all, check if your current user is part of the input group. You can do that by

sudo gpasswd -a $USER input

Then log out and log back in. …

Ubuntu Terminal

First step always before updating or installing something is to run

sudo apt-get update.

Second step is to run your

sudo apt-get upgrade or sudo apt-get dist-upgrade.

One final point, if there’s nothing to upgrade, then it won’t upgrade anything.

Creating a Encoded JWT (JSON Web Token) Access Signature (Token) using the Postman for authentication as ‘pre-request script’ was a requirement for a specific project I was engaged.

After analyzing the surrounding for couple of hours, was able to successfully sketch the solution to create the token with the dynamical time stamp and the requisites to cater the authentication requirement

AuthToken / JWT = Header + Payload + Signature

(JTW format as an example : xxxxxx.yyyyy.zzzzzz)

Header aka Token Header;

JSON Header{
“alg”: “HS256”,
“typ”: “JWT” }

Any of you faced a moment where though the Postman icon displayed on the task-bar, after opening upon clicking on the icon; the window is not appearing on your screen? But you only see a thumbnail of the window upon hover and from ‘Alt+Tab’?

Assuming the Postman has saved it position from the last time I was using it, tried of reinstalling the Postman which didn’t solve the state. Neither Windows swapping shortcut (Win-Key + Left Arrow/Right Arrow) worked.

Eventually, solution is identified with three simple steps; Which is…

TestLink, one of the famous open-source web-based test-case management tool in the software quality assurance industry. Couple of year ago, I was granted to work along with the tool to not only to manage test-cases, but also to integrate the test-link with the organizational automation framework.

Integration was not an easy task at all initially as there was no proper step-by-step guide to configure, code and setup the integration. Therefore this post is written with the initiative of guiding and assisting anyone who could face the challenge.

Regardless of the test methodology, as either BDD (Behavior Driven Development) or TDD…

Inspired by the initiative taken by Sanjiva Weerawarana (CEO, WSO2, Inc) who converted his experience into inspirational chain of words in his own blog (‘My Life as an Uber Driver’);

Made me think over couple of nights to feel the role of a driver. Well Obviously, I am a driver by my self for me and my family. Therefore; What i wanted to try is not just a being driver, but a taxi driver.

Initiated my self in getting all the required documents submitted to become an UBER driver after reading ‘his inspirational post’. Also, within a very short period…

Hirosh Tharaka (BSc.Hons, CTFL)

Writer | Vlogger | Techie | Technical Tester (Snr-QAE)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store