Javac not working in windows command prompt?

If you added it in the control panel while your command prompt was open, that won't affect your current command prompt. You'll need to exit and re-open or simply do.

If you added it in the control panel while your command prompt was open, that won't affect your current command prompt. You'll need to exit and re-open or simply do: set path="%path%;c:\program files\java\jdk1.6.0_16\bin" By way of checking, execute: echo %path% from your command prompt and let us know what it is. Otherwise, make sure there is a javac in that directory by trying: "c:\program files\java\jdk1.6.0_16\bin\javac.

Exe" from the command prompt. You can also tell which executable (if any) is being used with the command: for %i in (javac. Exe) do @echo %~$PATH:i This is a neat trick similar to the which and/or whence commands in some UNIX-type operating systems.

Ah yes, all I had to do was re-open the command prompt and it worked fine, thanks! – Domenic Nov 5 '09 at 6:02 +1. The "for %i in (java.

Exe) do @echo %~$PATH:i" just saved my day. I'm just a occasional Windows user and I just did not know there's could be yet another hidden java. Exe in c:\windows\system :) – david a.

Aug 19 '10 at 18:02.

I just had to do this to get this to work on windows 7 64. Open up a command prompt (cmd. Exe) and type: set CLASSPATH=C:\Program Files\Java\jdk1.7.0_01\bin Make sure you reopen all running command prompt Windows to get the environment variable updated as well.

I guess unsetting the classpath is better here. I would not use the CLASSPATH variable, especially not on Windows where it is global and affects multiple JREs... – eckes Nov 16 at 4:02.

Give it as "C:\Program Files\Java\jdk1.6.0_16\bin". Remove the backslash it will work.

I don't think that's correct. I can set my path to be nothing but "C:\Program Files\Java\jdk1.6.0_16\bin\" (with trailing slash) and it still works fine. – paxdiablo Nov 5 '09 at 5:43.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions