The full name of the first class is "xcom.Usefull" and that is what you use in the second one: xcom.Useful uf = new xcom.Useful();
Using imports allows you, to omit the package name and write only the last part of the class name (here: "Useful").
In either case you need a correct setting of the classpath to enable
Java to find the class file.
[ July 08, 2008: Message edited by: Ralph Jaus ]