Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Here is my path :

C:\Program Files\ICW>path
PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;c:\Program Files\Mi
crosoft SQL Server\90\Tools\binn\C:\Program Files\TortoiseSVN\bin;F:\downloads\a
gntctrl.win_ia32-TPTP-4.7.1a\bin; C:\Program Files\Java\jdk1.7.0_02\bin;

and javac is not recognized :

C:\Program Files\ICW>javac
'javac' is not recognized as an internal or external command,
operable program or batch file.

So I cd to directory to prove it works:

C:\Program Files\ICW>cd "C:\Program Files\Java\jdk1.7.0_02\bin"

and it works

C:\Program Files\Java\jdk1.7.0_02\bin>javac
Usage: javac <options> <source files>
where possible options include:
  -g                         Generate all debugging info

BUT the Java app(?) in control panel (which I have never seen/used before) shows the jre is installed, and everytime I try and reference the jdk it just overwrites it, see below. I am embarrased to admit I have over 10 years experience as a java developer ... which btw is unaffected, eclipse/maven are picking up jdk correctly. Its just the windows command prompt. enter image description here

share|improve this question
    
Is this just a cut/paste error on your post? ...\Tools\binn\C:\Program Files\Tortoi... –  Daniel R Hicks Dec 20 '11 at 16:57
    
Is F: always there? I think it's possible that searches won't go past an absent drive, etc. –  Daniel R Hicks Dec 20 '11 at 16:59
    
@DanH THANKYOU. I think that typo must have caused the rest of path to fail. –  NimChimpsky Dec 20 '11 at 17:08
    
Paths on Windoze are a PITA, because they're so hard to edit (without error) in the tiny windows provided. Stupid design. –  Daniel R Hicks Dec 20 '11 at 17:13

1 Answer 1

You need to remove the space before C:\Program Files\Java\jdk1.7.0_02\bin; in your PATH as well as add a ; after this entry c:\Program Files\Microsoft SQL Server\90\Tools\binn\

I'm also guessing that binn is a typo?

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.