0

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?

1
  • Please include as much details about your environment as you can when posting questions. This process is completely different for different operating systems. It's even different for different editions of the same operating system.
    – squillman
    Aug 19, 2010 at 2:40

2 Answers 2

0

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.

1
  • 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
    – Alex
    Aug 19, 2010 at 2:43
0

"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

You must log in to answer this question.