Could not find the main class, program will exit.
hello everybody,
I have a problem:
1. I install jdk 6 update 2 and jre 6 update 2
2. I enter "C:\Program Files\Java\jdk1.6.0_02\bin" in path of systemvarible
3. I wrot Hello.java as follow:
Code:
/* Hello.java */
public class Hello
{
public static void main(String[] args)
{
System.out.println("Hello, world");
}
}
4. I change in the Hello.java directory in Dos Window under Windows XP
5. I type java -version and every things ok but as i type javaw Hello.java
I got this message from Java Virtual Machine Launcher:
Cold not find the main class, program will exit.
can somebody help me?
thanks