Than you Mr.Langer for your useful reply. I followed your instruction and it worked, but there is some thing strange:
I have the following in filing system:
C:\hello\Test.java
1-I put C:\hello in CLASSPATH.
2- Compile the Test.java(Test.java has �package hello;� in it�s code. So it�s class is supposed to be in a folder named hello.)
C:\hello>javac Test.java
3-Now none of the following work:
C:\hello>java
Test C:\hello>java hello.Test
To have it run I should create a folder "hello" under the main folder "hello" and put the Test.class inside that:
C:\hello\hello\Test.class
And now it will be run by the following commond:
any where>java hello.Test
So there should be some attribute for javac to create the folder with the same name as the package and put the class file inside that folder?