cannot comile user defined classes
Hello i have a problem on compiling user defined classes .
example
file x.java
public class x{
...........................
}
file y.java
import x;
public class y{
}
I first compile x.java and everything is OK .
Then i compile y.java and the compiler gives the folowing
y.java:2: '.' expected
import y
I have tried to put the classes on a package and added the folowing line yo each file
import /home/bill/test
Then i puted the java files on that dir
and compiled with
javac -classpath /home/bill/test y.java
AGAIN THE SAME
y.java:2: '.' expected
import y
WHAT I DO WRONG PLEASE HELP!!!!!!!!!!!!

