I need to set PATH and JAVA_HOME for my Oracle java. Where I can set these environment variables in Ubuntu in general. Where is the best place to set them?
Asked
Active
Viewed 29 times
0
-
The .bashrc file in your /home/
directory can be a good place. – MandiYang Nov 18 '20 at 14:09 -
Not really, since this is not systemwide. – Artur Meinild Nov 18 '20 at 14:10
-
I would consider this a duplicate of --> [How Do I Make A Permanent, Systemwide Change to $PATH](https://askubuntu.com/questions/1140585/how-do-i-make-a-permanent-systemwide-change-to-path) – Artur Meinild Nov 18 '20 at 14:13
-
So I've added an answer to the above post. ^^^^ – Artur Meinild Nov 18 '20 at 14:13
-
Yeah maybe that one covers it better.. – Artur Meinild Nov 18 '20 at 14:26