• Post Reply Bookmark Topic Watch Topic
  • New Topic

entry to PATH environment variable  RSS feed

 
Eric Reisenbuckler
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am reading the Head First Java book and I am having trouble setting up PATH environment variable on my computer. Where can I find the directory I am looking for?

Thanks,

Eric
 
Wouter Oet
Bartender
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi and welcome to the JavaRanch.

You want your PATH environment variable to point to (among other things) <theDirectoryWhereYouInstalledJava>/bin.
 
Eric Reisenbuckler
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok,

I am really new to programming, I think I need a step-by-step process on how to do that if you don't mind.

Eric
 
ashwin bhawsar
Ranch Hand
Posts: 62
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want to set-up or edit your path variable, follow these steps:

1. rt-click on "My Computer" icon.
2. Select "Properties" from the drop-down menu, a "System Properties" window pops-up.
3. Click on the "Advanced" tab from this window.
4. Select the "Environment Variable" button located at the bottom of the window.
5. Look for variable name "Path" in the "System Variables" list.
6. Select it , and click on "Edit".
7. Now you can edit your Path variable.

To add a path in the "variable value" , put a semicolon and the end of the of the already existing value and append your path there your path
eg:
Before append:
C:\Program Files\Common Files\DivX Shared\

After append:
C:\Program Files\Common Files\DivX Shared\;C:\Program Files\Java\jdk1.6.0_24\bin\;
 
jake dickens
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ashwin bhawsar wrote:If you want to set-up or edit your path variable, follow these steps:

1. rt-click on "My Computer" icon.
2. Select "Properties" from the drop-down menu, a "System Properties" window pops-up.
3. Click on the "Advanced" tab from this window.
4. Select the "Environment Variable" button located at the bottom of the window.
5. Look for variable name "Path" in the "System Variables" list.
6. Select it , and click on "Edit".
7. Now you can edit your Path variable.

To add a path in the "variable value" , put a semicolon and the end of the of the already existing value and append your path there your path
eg:
Before append:
C:\Program Files\Common Files\DivX Shared\

After append:
C:\Program Files\Common Files\DivX Shared\;C:\Program Files\Java\jdk1.6.0_24\bin\;


hold win key only for windows then press R type in control.exe then click on advanced system settings then click Environment variables then click new type path as name the value type c:\program files\ java\jdk1.__.__\bin then your done.
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Windows key + Pause/Break is easier; you don't have to type anything. Just select Advanced Settings immediately from the popup.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!