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
As per JDK-8160181 it is not forbidden to use digits in module names, however they should not be related to versioning.
Examples:
Since Lint can't figure out what the digit means it reports digits by default and you can suppress them in module file with:
@SuppressWarnings("module") // 1 in module1 is module number, not version
module module1 {
...
}
The comment is optional but explains "why" the warning was suppressed