这样的编译问题是怎么回事啊?
导入了一个教程的例子工程结果出现如下问题
The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this projectguiceOne2008年12月12日 9:55:118934
The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class filesSunyangImpl.javaguiceOne/src/sunyangline 12008年12月12日 9:55:118933
这几个java文件很简单的啊,我查了一下lib中的包我已经导入了啊并且已经指定了classpath了呀
package sunyang;
public class SunyangImpl implements Sunyang {
public void print() {
System.out.println("技术凝聚实力,专业创造辉煌");
}
}
package sunyang;
public interface Sunyang {
public void print();
}
package sunyang;
import com.google.inject.Binder;
import com.google.inject.Guice;
import com.google.inject.Module;
public class Bind implements Module {
public void configure(Binder binder) {
binder.bind(Sunyang.class).to(SunyangImpl.class);
}
public static void main(String[] args) {
Guice.createInjector(new Bind()).getInstance(Sunyang.class).print();
}
}
[解决办法]
[解决办法]
解决就好
[解决办法]
恭喜
[解决办法]
up
[解决办法]