Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Setting up your PATH variable.

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
5,518
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Sep 5, 2010

This video explains how to set your PATH variable on Windows XP. This video explains how to set up the JDK, however, it also applies to anything else.

For Windows XP:
Go to the start menu. Right click on My Computer and select "Properties". Select the "Advanced" tab. Click the "Environment Variables" button. Find the "Path" entry and double click it. Append a semicolon to the end if it's not already done and simply append the location of your JDK's binary directory to the end. For example, if you're using JDK 6u21, you would add ";C:\Program Files\Java\jdk1.6.0_21\bin" to the end.

For Windows Vista and 7:
Go to the start menu. Right click on My Computer and select "Properties". Select the "Advanced System Settings" link. Click the "Environment Variables" button. Find the "Path" entry and double click it. Append a semicolon to the end if it's not already done and simply append the location of your JDK's binary directory to the end. For example, if you're using JDK 6u21, you would add ";C:\Program Files\Java\jdk1.6.0_21\bin" to the end.

For (most) Linux:
Use "export PATH=$PATH:/path/to/jdk/bin". The vast amounts of places your JDK could be located prevent a rock-solid path. Also, most of the time if you install JDK via a package manager, this is done for you automatically.

To compile your code, use the "javac" command.

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:
see all

All Comments (9)

Sign In or Sign Up now to post a comment!
  • What would the end of the Variable path be if i have JDK 7?

  • straight forward and to the point, FUCk all the other tutorials, yours wins!

  • Hey have 1 doubt we use limited user account for students for java programming in our college is it possible to set path using limited account???

    If not is there an alternate method to do this??? like a batch file exe file to set path automatically is it

  • i have a problem saving a movie ive edited in windows movie maker it says some error thats not true, could the variables be offset? if so tell me what to put please

  • Thanks this helped :D

  • I tried all of this, and it didn't work. (Windows XP) anymore tips?

  • .. This has been extremely helpful. I salute you.

  • @baldmanwithBIGlegs What you said, whitout the all day and phyton part :P

  • dude, I have been trying to set my PATH variable for Python (on Windows) alll day... your simple video finally explained it to me, I was creating a new path instead of appending it. You have helped me out soo much. Thanks for uploading :)

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more