• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how do save : set path= permenantly

 
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i can operate "javac" only after i set path=C:\program files\ java

but when i close that dos window, the set path resets itself, and i need to type the whole line again .

how can i make the dos window remember where the java.exe and javac.exe are ? how do i set path , forever?
 
Sheriff
Posts: 11343
Mac Safari Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
See step 4 (update the PATH variable) in installation instructions for JDK 6 in Windows (32 bit).
 
Dmitri Makovetskiy
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

marc weber wrote:See step 4 (update the PATH variable) in installation instructions for JDK 6 in Windows (32 bit).




okay thanks for the link


damn . i followed step 4, i went to the control panel>system>Environment variable
then i saved a path to program files\java\JDk 1.6.0.1_20 \bin

still doesnt recognize java


 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
stat->my computer (properties)->advance->enviornment variable->go for uesr variable->new->variable name:path=path-->variable value=D:\Program Files\Java\jdk1.5.0_02\bin;

thats it.....
 
marc weber
Sheriff
Posts: 11343
Mac Safari Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Dmitri Makovetskiy wrote:...i went to the control panel>system>Environment variable
then i saved a path to program files\java\JDk 1.6.0.1_20 \bin

still doesnt recognize java


Make sure your setting is exactly...

C:\Program Files\Java\jdk1.6.0_20\bin

The snippet you posted is missing "C:\" and has a space after "JDk" and another space after "20". (I don't think the uppercase "JD" should matter, but best to match this to the actual directory name, which is probably lowercase "jdk".)

Also, make sure it is separated from other PATH values by a semicolon with no spaces...

value1;value2;value3;C:\Program Files\Java\jdk1.6.0_20\bin
 
reply
    Bookmark Topic Watch Topic
  • New Topic