Any ideas how come javac...?

Operating System: Windows XP Professional
Java Applications: j2sdk1.4.2_03 (Downloaded in drive D:)
javac.exe: (Checked and confirmed it's in j2sdk1.4.2_03\bin)
Path appended: ;D:\j2sdk1.4.2_03\bin (in System Properties | Advanced | Environment Variables | System Variable | Path)
Source file: JavaPractice1.java (Saved in D:\Yeng)
Tried to compile at D:\> by typing: javac JavaPractice1.java
Tried to compile at D:\Yeng> by typing: javac JavaPractice1.java
Both gave me the same error message: 'javac' is not recognized as an internal or external command, operable program or batch file.
BUT when I tried to compile at D:\Yeng> by typing: D:\j2sdk1.4.2_03\bin\javac JavaPractice1.java
IT WORKS!
Any ideas why the full path name has to be entered in order for it to compile? Why when I typed: javac JavaPractice1.java at D:\Yeng> it can't compile even when I had appended ;D:\j2sdk1.4.2_03\bin at Path in the System Variable?
Appreciate it very much if someone helps me in this!

The error "'javac' is not recognized as an internal or external command, operable program or batch file." comes from the Windows command prompt. It means the command prompt program can not find javac.
If it works when typing D:\j2sdk1.4.2_03\bin\javac JavaPractice1.java but does not work when typing javac JavaPractice1.java your Path setting must not be right, even though the Path you posted looks right. Make sure there are no spaces in the Path setting. Try rebooting.

Similar Messages

Maybe you are looking for

  • Can't render in Premiere 3.0

    Video is DV.  Program is 41 minutes.  I have selected the work area, clicked on timeline - render work area and let it roll.  Only the first 2 minutes show the green line and a few little sections through out.  There is no red line.  I've exported to

  • Report instance history not refreshing

    Here is my issue.  I view the history of a published Crystal report in Central Managment Console.  I then try to view the history of another report and it displays the history of the previous report I viewed.  The only way I can view another reports

  • How to download adobe flash player on an ipad?

    need help on how to downlaod adobe flash player on a new i pad air

  • Skype for Blackberry in Australia?

    Hi i have been trying to find out for a while now what Blackberrys can have skype installed in Australia. There is very little info out there and it seems to be favouring US customers. Also if anyone has skype installed whats it like? If you have IM

  • Script - Page Number

    Hi, I display page number in each page as &PAGE& of &SAPSCRIPT-FORMPAGES&, means current page number of total pages. But there are 25 pages in the script. From 11th page to 25th page, the page number is displayed correctly as 11 of 25, 12 of 25......