hi, i am basically a beginner, trying to find my way in java. i downloaded the jdk1.4. i tried to write a sample program and compile/run it with javac in commnad prompt. i made sure i set the path correctly. cant figure out why it shows this problem.
my sample program is:
public class hellouser{)
public static void main(string[] arguments) {
string username = system.getprope rty( "user.name" );
system.out.prin tln( "hello, " + username);
}
}
the error on compilation is:
javac hellouser.java
'JAVAC' is not recognized as an internal or external command, operable program or batch file.
what is wrong???? i did set the path to my current program .
my sample program is:
public class hellouser{)
public static void main(string[] arguments) {
string username = system.getprope rty( "user.name" );
system.out.prin tln( "hello, " + username);
}
}
the error on compilation is:
javac hellouser.java
'JAVAC' is not recognized as an internal or external command, operable program or batch file.
what is wrong???? i did set the path to my current program .
Comment