the problem is when u say
import class.*;
it means that u are specifying class1 as one of ur package ie (folder class1
containing all ur project classes)but class1 is one of ur class not package.Thus
the problem
remedy either create a package (and folder in windows )place all ur classes in
that directory.