Andrew Maddison


Ubuntu Path Environment Variables

Here’s how to set a persistant environment variable in Ubuntu (in this case, to intelli J)

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:
source /etc/environment

You can check that the variable has updated with:
echo $PATH
which 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.