How to configure Java variables in Windows XP

To set Java variables in Windows XP:

  1. Open properties of My Computer
  2. Go to the Advanced tab
  3. Click Environment Variables button
  4. Under System variables click New button
  5. and set the following:
    Variable name: JAVA_HOME
    Variable value: C:\Program Files\Java\jre7
  6. Click OK button and create the next variable as following:Variable name: JRE_HOME
    Variable value: C:\Program Files\Java\jre7
  7. Confirm the dialog and close the windows by clicking OK button
  8. Re-open command prompt and check if works
  9. If not, log off and re-login
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s