Compiling - "system cannot find specified file"

Using the Java SDK with TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Wes

Compiling - "system cannot find specified file"

Post 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
Graham Clark

Re: Compiling - "system cannot find specified file"

Post 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.
Post Reply