Open up a shell and edit the file /etc/environment
sudo gedit /etc/environment
That will spawn a text editor, which should include a colon seperated list of paths. Add the install location (/bin) inside the intelli J folder to the list, and save the file. Mine looks something like this:
Then refresh your environment variables by firing off the following command:
You can check that the variable has updated with:
echo $PATHwhich should show you the path variable as you edited it.
Finally, check it’s all joined up by launching Intelli J from a random location:
With a bit of luck, IntelliJ will launch. In which case get a cup of tea to celebrate.