How to resolve module-info.java compile error in Jdk9/java-9

后端 未结 4 1306
傲寒
傲寒 2021-01-05 03:06

I am trying to run below code using jdk-9 but facing problem when compile using command

Command

 javac -d mods .\\module-info.java c         


        
4条回答
  •  轮回少年
    2021-01-05 03:13

    Per the Jigsaw Issues List, a module name cannot end with a number. The purpose is to discourage authors from encoding version numbers in module names.

提交回复
热议问题