Hi,
You dont have to say private Class B B..
the default package structure of Java takes the classes in the current directory and the CLASSPATH.Make sure the current directory is in PATH and add B bObj = new B() in the A class..if they are in the same directory , java identifies itself.
Giridharan