set PATH=%PATH%;C\Program Files\Java\jre6\bin\javac NotepadProgram.java
and still I get the same error "javac is not recognized....." If anyone has an idea of what could possibly be wrong I would be greatfull for your input.
/*
*Micheal W. Smith
*CMP 2564
*Java Programming
*Exercise 2
*/
import java.util.Scanner;
public class NotepadProgram {
public static void main(String[] args) {
// TODO code application logic here
System.out.println("Hello out there.");
System.out.println("I will add two numbers for you");
System.out.println("Enter two whole numbers on a line:");
int n1, n2;
Scanner keyboard = new Scanner(System.in);
n1 = keyboard.nextInt();
n2 = keyboard.nextInt();
System.out.println("The sum of those two numbers is");
System.out.println(n1 + n2);
}

New Topic/Question
Reply



MultiQuote




|