Eclipse Java EE IDE 4.7.2不适用于jdk 9

时间:2018-01-12 09:40:48

标签: java eclipse

我安装了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

java构建路径如: enter image description here

我选择偏好 - > java - >构建路径 - > classpath变量: enter image description here

错误: enter image description here

这是我的java类路径: enter image description here

0 个答案:

没有答案