package one;public class a
{
}
-----------------------------------
import one.a;class b
{
a aa = new a();
}
这样程序编译通过
-----------------------------------
可是改成import one.*;class b
{
a aa = new a();
}就提示
file does not contain class a
Please remove or make sure it appears in the correct subdirectory of the classpath.
a aa = new a();
^
1 error这是怎么回事啊?难道包里面的类不能用通配符?
{
}
-----------------------------------
import one.a;class b
{
a aa = new a();
}
这样程序编译通过
-----------------------------------
可是改成import one.*;class b
{
a aa = new a();
}就提示
file does not contain class a
Please remove or make sure it appears in the correct subdirectory of the classpath.
a aa = new a();
^
1 error这是怎么回事啊?难道包里面的类不能用通配符?
使用jdk 编译加上 -d 建立包目录以后
也是同样的结果
不知道是不是bug了另外用netbeans不会有这个问题出现。