在Eclipse中进行构建时发生错误

时间:2019-03-29 12:44:36

标签: java eclipse

我是Eclipse的新手。每当我创建任何项目或程序包时,我都会遇到一个错误。

Errors occurred during the build.
Errors running builder 'Java Builder' on project 'Hello'.
java.lang.NullPointerException

还在Java中运行一个小的“ Hello world program” 这是我的程序:

public class MyHello {
    public static void main(String[] args) {
        // TODO Auto-generated method stub
        System.out.print("Hello World");
    }

}

我收到此错误:

Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
Error occurred during initialization of boot layer
java.lang.module.FindException: Module Hello not found

这是我的Java版本:

Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
java version "12" 2019-03-19
Java(TM) SE Runtime Environment (build 12+33)
Java HotSpot(TM) 64-Bit Server VM (build 12+33, mixed mode, sharing)

我正在使用最新的Eclipse版本2019-03

Project: Eclipse IDE for Java Developers

1 个答案:

答案 0 :(得分:1)