我安装了eclipse:
Eclipse Java EE IDE for Web Developers.
Version: Oxygen.2 Release (4.7.2)
Build id: 20171218-0600
我安装了jdk 9:
java version "9.0.1"
Java(TM) SE Runtime Environment (build 9.0.1+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)
我创建了一个java项目,但它给了我错误:
package java;
public class JavaMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
}
}
包,JavaMain,String上的错误是:
The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
Implicit super constructor Object() is undefined for default constructor. Must define an explicit constructor
String cannot be resolved to a type