Fixing 'PATH' in Environment Variables in Windows 7 for multiple applications

environment-variables, java, ruby, windows

Solution

Separate the paths to Ruby and Java with your system's path separator character.

In case of Windows 7, it's

;

You'll be able to use both

Here's an example of Path variable with numerous applications.

C:\Program Files\TortoiseHg\;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\

Problem

After using JDK if I use ruby, I have to change 'PATH' in Environment Variables in Windows7. Is there a work around where I don't have to keep changing it even if I use multiple applications?

Original source