Exporting a package from system module is not allowed with --release

前端 未结 5 1730
迷失自我
迷失自我 2021-01-02 03:15

I have the following program:

module-info.java

module a {
}

Main.java

public clas         


        
5条回答
  •  滥情空心
    2021-01-02 03:35

    If you are using InetlliJ Idea do this setting: Go to the File menu -> [Settings] -> [Build, Execution, Deployment] -> [Java Compiler] and select your JDK version and sometimes this is empty so insert the java version like [if you use 11] and save, Then compile the program and run.

提交回复
热议问题