Hi Programmers,
I have been trying to put the right input to my newly installed
java console(j2sdk1.4.2_03) so that it will give a path to the bin, so that it will stop returning 'javac is not recognized as an internal or external command, operable program or batch file.' on the next line and compile the file it is required to, instead.
It has worked alright on another computer, but my attempts to make it work on this computer have thus far failed. It is a Windows XP operating system and as writ, the console is j2sdk1.4..2_03.
The input to and the response from the console thus far reads:-
Microsoft Windows XP[version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C: \ Documents and Settings\user>c:\j2sdk1.4\bin
The system cannot find the path specified
C:\Documents and Settings\user>c:\j2sdk1.4\bin
The system cannot find the path specified
C:\Documents and Settings\user>c:j2sdk1.4.1\bin;
C:\Documents and Settings\user>set PATH = C:j2sdk1.4\bin
C:\Documents and Settings\user>My Documents\java
'My is not a recognised as an internal or external command,
operable program or batchfile.
C:\Documents and Settings\user>cd My Documents\Java
C:\Documents and Settings\user\My Documents\Java>javac My First Program.java
'javac' is not recognized as an internal or external command,
operable program or batch file.
Anyway, as you can see I seem to have exhausted quite a few possibilities, trying the various code suggested by sources, and all to no avail. The file I wanted to compile and run is in a folder called 'Java' in a folder called 'My Documents', which is in a folder called 'user' which is in a folder called 'Documents and Settings' which is on the C: drive. I don't know how to get the path to the bin so that it will (preferably permanently) understand the 'javac' command so I can compile and run. Pretty elementary stuff, but it has got me stumped. Hope someone out there can help. Thank you for your assistance, in advance,
Yours
Mary Dawson
C:\Documents and Settings\user\My Documents\Java>