i am stragling to create a working directory, i've tried to do this: Creat a Path
MyDirectory;c:\Program Files\Java\jdk1.6.0_21\bin
The following program was stored under MyDirectory with the name SimpleProgram.java
Quote
public class SimpleProgram {
public static void main(string[] args) {
System.out.printIn("A proverb: "
;
String proverb = "Practice makes perfect: ";
System.out.print(proverb);
int characterCount = proverb.length();
System.out.printIn("The proverb has " + characterCount + "characters."
;
}
}
javac does compile ok and
java does run ok
But if i try to type:
javac SimpleProgram.java
the output is:
javac: file not found: SimpleProgram.java
usage: javac <option> <source files>
use -help for list of possible option
WHERE do i go wrong?