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 are both input/outputs:

Running javac:

D:\>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

1 Answer 1

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
C:\Java\jdk1.7.0_21\bin\javac.exe

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

 
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.