Page 1 of 1

Compiling - "system cannot find specified file"

Posted: Mon Jan 14, 2002 11:46 pm
by Wes
Just loaded j2sdk1.4.0-beta3. Then TextPad (JDK setup). It keeps going to the default (C:Winnt\System32\javac.exe) looking for the java compiler.

I can run javac from the command line fine. I have it installed in directory j2sdk1.4.0-beta3\bin. The PATH points there but can't get TextPad to go there.
Thanks in advance,
Wes

Re: Compiling - "system cannot find specified file"

Posted: Thu Feb 28, 2002 4:49 pm
by Graham Clark
If you change the PATH, you have to either restart the computer or just the shell (command line window), depending on which version of Windows you have. By the same token, you also have to restart TextPad whenever the PATH is changed.
Also, make sure that j2sdk1.4.0-beta3\bin is before C:Winnt\System32 in the path; the first matching javac will be used.

Graham.