Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Here are both input/outputs:

Running javac:

Usage: javac <options> <source files>

Running where on javac:

D:\>where javac
INFO: Could not find files for the given pattern(s).
share|improve this question
What happens if you try where javac in D:\userdata\jobranco\Desktop\aspectJ\workspace\aspect_tests\src\swtproj? – gronostaj Apr 18 '13 at 8:49
What's your PATH variable set to? Does where javac.exe return anything? – Karan Apr 18 '13 at 22:10

Apparently (as for Win 7) the implementation of where does not handle quotes (") poperly. It's probably better to remove them from your entire PATH environment variable (don't worry about spaces in this case).

C:\>set PATH=C:\windows\system32;"C:\Java\jdk1.7.0_21\bin\"
C:\>where javac
INFO: Could not find files for the given pattern(s).

after removing quotes:

C:\>set PATH=C:\windows\system32;C:\Java\jdk1.7.0_21\bin\
C:\>where javac

What might be additionally misleading, is that where command could find properly java but failed with javac. It's because you might have JRE installed as well.

share|improve this answer

Your Answer


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.