• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Can't configure the path for JDK.  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all. I'm just learning java and I was wondering if you could all help me out here.
I just installed jdk on my computer under C:\Program Files\Java
But when I try to path it under enviromental variables. It doesn't seem to work.
My path is C:\Program Files\Java\jdk1.7.0\bin and when I type javac at the command line it gives me an error.
It works when I go to access it manually with the cd command. But I can't seem to get the path working.
Any help would be GREATLY appreciated.
Cheers, John
 
lowercase baba
Posts: 12745
51
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
did you open a new command window after setting the path? type "echo %path%" and see if the path to the JDK is really there.
 
Jackson Curtis
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just did that and it gave C:\Program Files\Java\jdk1.7.0
So yeah. Its in the right place but it doesn't seem to work when I do javac.
*EDIT*
Nvm. I fixed it.
Thank you so much for your help
;) see you all around.
 
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to Javaranch
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!