6

I just bought a Win 7 PC, installed jdk1.6 and Netbeans, NB works fine, but when I did "java -version" in a command prompt, it can't find java, why ? How to fix it ?

Edit : I thought the installation process should set the path correctly, how come it didn't ?

2
  • The executable probably isn't in your path. What does 'echo %PATH%' say?
    – Trey
    Aug 11, 2010 at 18:04
  • C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\QuickTime\QTSystem\
    – Frank
    Aug 11, 2010 at 18:07

2 Answers 2

5

The JDK installer for windows does not update the path environment variable. The installation docs describe how to do this. See item #4 on that page.

0
2

The path to java isn't in your system PATH variable.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .