aspose file tools
The moose likes Beginning Java and the fly likes Can't configure the path for JDK. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Can Watch "Can New topic
Author

Can't configure the path for JDK.

Jackson Curtis
Greenhorn

Joined: Aug 22, 2011
Posts: 2
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
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 10043
    
    6

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.


Never ascribe to malice that which can be adequately explained by stupidity.
Jackson Curtis
Greenhorn

Joined: Aug 22, 2011
Posts: 2
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.
bhanu chowdary
Ranch Hand

Joined: Mar 09, 2010
Posts: 256
Welcome to Javaranch
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Can't configure the path for JDK.
 
Similar Threads
'java' is not recognized as an internal or external command
Steps to install tomcat 5.5.9
Problem with JDK at command prompt
trying to get started with head first java
Intermediate/Advanced Java Users. Pl help with static profilers (PMD)