• 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

Path Name Again

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I downloaded and set-up SDK to learn Java with the Headfirst book but am having the same problem others have with getting the cmd prompt to recognize the javac & java commands without typing in the path. I've been through the documentation and have read all the treads on the forum but can't get it to work.

Details -

I'm running Windows XP and just downloaded the latest which is sdk 6 I think.

I found the java/javac files at this location after installation: C:\Sun\SDK\jdk\bin

If I enter this path at the command prompt it will compile or run the 'HelloWorld' program fine. I changed my Path variable in settings to this same address but it doesn't work.

I also found a second & third java.exe file at:C:\Program Files\Java\jre1.5.0_11\bin & C:\Program Files\Java\jre1.5.0_06\bin and tried these as the path name but it did not work. If I enter this path in the prompt line along with 'java' and program name it won't run so I don't think this is the right.

One other thing, I changed the Path Class variable to C:\Sun\SDK\jdk\bin and it didn't work. I didn't copy what was in there originally which I'm kicking myself for (it was something java related). I deleted the file after this & it still doesn't work.

Any help would be greatly appreciated.

Thanks.
Al
 
lowercase baba
Posts: 13089
67
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
easiest thing first:

did you open a new command window after editing your path? an existing/open window won't pick up the changes.
 
Al Garcia
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Fred, I'm embarrased but that was it. Thanks for the help.
 
reply
    Bookmark Topic Watch Topic
  • New Topic