views:

23

answers:

2

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?

A: 

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.

Borealid
Its working now! Thanks man!
JavaNoob
A: 

In linux from your console:

export PATH=$PATH:your_jre_path_here

In Window:

  • From the desktop, right-click My Computer and click Properties.
  • In the System Properties window, click on the Advanced tab.
  • In the Advanced section, click the Environment Variables button.
  • In the Environment Variables window, highlight the Path variable in the Systems Variable section and click the Edit button.Add or modify the path lines with the paths you wish the computer to access. Each different directory is separated with a semicolon e.g:C:\Program Files;C:\Winnt;C:\Winnt\System32
iKid