javacって普通path通ってないでしょ。
環境変数の具体的に何を変えたわけ?
echo %PATH%の結果さらしてみ。
あとdir "C:\Program Files\Java\jdk1.6.0_18\bin\javac.exe"の結果な。