If you use export, you can only use the environment variables on that terminal session. Else, you have to add it to /etc/enviroment.

But if you aren't logged in as root, you can't use it. You should change the permissions of the file.