Note, that this recipe is not updated long time and could be outdated!
Got it.

QUIT WINDOWS, IT SEVERELY HARMS HEALTH OF YOUR COMPUTER!

COMPUTERS RUNNING WINDOWS DIE YOUNG!

Set Environment Variables

Each computer may have a slightly different configuration, e.g. the directories chosen for various installations, software product versions, etc. To enable the software components to find each other and colaborate, operating systems like Windows and UNIX introduce environment variables.
  1. Right-click the icon "My Computer" and select "Properties" from the menu. (or open Start -> Control Panel -> System Properties, or press WinKey + Pause). In all 3 cases you see the following window:
    installsetenvsystemproperties.png
  2. Select the tab "Advanced" and press the button Environment Variables. You see the following window:
    installsetenvvariables.png
  3. Under "System variables" press button New
  4. Fill in the variable name and its value (or pick an existing one and edit it).
  5. Notice: On Windows platform path-like variables may have several entries separated with semicolons (;). It is important to avoid any unnecessary spaces, unless they are in the directory names. It is easier to avoid spaces altogether, therefore many people prefer to install Java tools (e.g. variables JAVA_HOME, ANT_HOME, M2_HOME for JDK, Ant and Maven respectively) under a directory c:/tools for various installations rather than the more common c:/Program Files.
  6. Several installation instructions (see JDK uz Windows  Ant uz Windows, Maven uz Windows require to create new environment variables or to edit the Path variable.
  7. In some environments you could have CLASSPATH environment variable defined. Such variable may interfere with some Java applications; remove this variable, if you can.

 

Created by Valdis Vītoliņš on 2008-08-10 09:46
Last modified by Valdis Vītoliņš on 2013-09-08 17:23
Translated into en by Valdis Vītoliņš on 2013-09-08 17:23
 
Xwiki Powered
Creative Commons Attribution 3.0 Unported License