你的package语句写对了吗。msg下的子程序:
package msg;
import msg.dgram.*;dgram下的子程序:
package msg.dgram;你能编译msg就说明你package写错了。