all i need to know atm is how to run the program i made "Example.java" from the comand prompt. the book says to compile the file by going to the command prompt, i suppose, and typing "C:\>javac Example.java". That should then make a .class file. Then i'm supposed to be able to type "C:\>java Example" and it should run the program.
However, this does not work. It says, when i type "C:\>javac Example.java", "'javac' is not a recognized as an internal or external command, operable program or batch file."
Since i can't turn the .java file into a .class file i can't run "java Example"
I know that "javac" is the java compiler so that means i'm having trouble compiling the file right?
this is the Example file i was talking about:
/*
This is a simple Java program.
Call this file Example.java.
*/
class Example {
// A Java program begins with a call to main().
public static void main(String args[]) {
System.out.println("Java drives the web.");
}
}