java创建出现module,如何使Eclipse停止要求在新的Java项目创建时创建module-info Java文件?...

Everytime I try to create a new java project Eclipse keeps asking if I want to add a module-info java file to the source folder. It's getting pretty annoying as there's no immediately obvious option to opt out of this check.

IDE for Java Developers, Photon release 4.8.0

解决方案

See while creating a new project, after you click>> next on the very first dialog "new java project." There is one another dialog box pops up when you click >> finish. It will lead you to the 3rd dialog box which asks for the creation of module-info java file?? & gives you two option create & don't create.

You should select "don't create."

Here are some advantages of the file

module-info.java contents:

To declare a jar file as a named module, one needs to provide a module-info.class file, which is, naturally, compiled from

你可能感兴趣的:(java创建出现module)