I just installed jdk2 release 1.4.1 and I set the variables under User
environment variables as
Variable: JAVA
Value: C:\j2sdk1.4.1\bin
but when i got into the dos prompt using cmd via the run command, i get the
following error:
'javac' is not recognized as an internal or external command,
operable program or batch file.
any body know what is going on and if so can someone help me.
-Brian
joshua - 07 Mar 2005 08:31 GMT
you have to set 'path'.
add 'path' variable to system variables of your system.
and set the value of the variable as c:\j2sdk1.4.1\bin
re-run cmd, and run javac.
> I just installed jdk2 release 1.4.1 and I set the variables under User
> environment variables as
[quoted text clipped - 10 lines]
>
> -Brian
Brian Neumann - 07 Mar 2005 23:28 GMT
Thank you very much for the help all is working now.
-Brian
> you have to set 'path'.
> add 'path' variable to system variables of your system.
[quoted text clipped - 18 lines]
>>
>> -Brian
Raymond DeCampo - 08 Mar 2005 01:45 GMT
> I just installed jdk2 release 1.4.1 and I set the variables under User
> environment variables as
[quoted text clipped - 10 lines]
>
> -Brian
Brian,
This is an issue with your OS configuration, in particular the PATH
environment variable. You have a couple of ways to fix this:
1) Use the full path when referencing the javac command
(C:\j2sdk1.4.1\bin\javac.exe)
2) Set the PATH in the local shell to include the C:\j2sdk1.4.1\bin
directory (set PATH=%PATH%;C:\j2sdk1.4.1\bin)
3) Edit the PATH environment variable (user or system) using the Windows
GUI. Be sure to start a new command shell afterwards.
HTH,
Ray

Signature
XML is the programmer's duct tape.