Hi there I have a program that requires me to set the PATH environment variable to point to JRE version 1.5 as I need to access the program via a command prompt. So any ideas on how to do that?
2 Answers
Test the change by running "PATH=${PATH}:(your additional directory here)" and, if everything works as intended, edit the "PATH=" line in ~/.bash_login to automatically use the new configuraiton.
This PATH HowTo should cover further questions, if needed.
-
This should work, but the ~/.bash_profile is more typical location for environment variable settings. Also, if you have a .bash_profile, .bash_login does not get executed– AlexAug 19, 2010 at 2:43
"Go to the control panel > System > Advanced and edit your environment variables there. Append "; C:\path\to\the\jre\bin" to the PATH variable. Open a new terminal and profit."
Answer provided by Borealid