exactly speaking Class.forName()will load the class binary to memory, but it could't new a instance automatically, so after the line Class.forName("directlink.classes.Dfile") you need to do...