就是我建了一个工程叫01_02_EXP,在里边建了Shape一个Circle类,Shape类里写package org.edu2act.shape,就是老提示错误说The declared package "org.edu2act.shape" does not match the expected package 怎么回事啊,怎么解决?
就是我建了一个工程叫01_02_EXP,在里边建了Shape一个Circle类,Shape类里写package org.edu2act.shape,就是老提示错误说The declared package "org.edu2act.shape" does not match the expected package 怎么回事啊,怎么解决?
追答你把包名改一下试试,可能是你类中的包名和你创建的包名不匹配导致的
就是我建了一个工程叫01_02_EXP,在里边建了Shape一个Circle类,Shape类里写package org.edu2act.shape,就是老提示错误说The declared package "org.edu2act.shape" does not match the expected package 怎么回事啊,怎么解决?
追答有两种办法可以解决,如果你是在myeclipse或者是eclipse的话,报错肯定前面会有一个红色的×的,你点击那个×,会move……,和一个change……,你双击后面那个;
第二种办法是:你根据你的包一个一个对照的写上去。