简体   繁体   中英

Errors occurred during the build in Eclipse

I am new to Eclipse. I am facing one error whenever I am creating any project or package.

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

Also on running a small "Hello world program " in java Here is my program:

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

}

I am getting this error:

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

Here is my java version:

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)

I am using latest Eclipse version 2019-03

Project: Eclipse IDE for Java Developers

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM