Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PATH Environment Variable?

 
Justin Groid
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have Headfirst Java. How do I "add an entry to your PATH environment variable that points to the /bin directory inside the main Java directory" ?
 
Campbell Ritchie
Sheriff
Pie
Posts: 49733
69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at our FAQ, which I hope will answer your question.

And welcome to the Ranch
 
Nitish Bijalwan
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Justin Groid wrote:I have Headfirst Java. How do I "add an entry to your PATH environment variable that points to the /bin directory inside the main Java directory" ?

Suppose my java jdk is install in this directory C:\Program Files\Java

Then click on my computer ,
select advance tab, in this select enviornment variable
a new window will appear with two frame - click on system variable here you will find PATH variable
Now click on PATH and then click on EDIT and just copy your java directory address until bin folder example:C:\Program Files\Java\bin and paste this
to PATH with this syntax:
;your_java_folder_address;

Note put ; before and after java path
 
fred rosenberger
lowercase baba
Bartender
Posts: 12180
34
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nitish Bijalwan wrote:
Suppose my java jdk is install in this directory C:\Program Files\Java

Then click on my computer...

Note that these directions are worthless if the user doesn't use windows.
 
Justin Groid
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use Windows and thanks guys I got it to work
 
Campbell Ritchie
Sheriff
Pie
Posts: 49733
69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well done
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic