Well, Jigsaw quick start is a great way to get started if you are starting a project with Java-9.
Where should I place this module-info.java to make jvm read it?
To display your mode name from the module org.apache.felix.framework { } declaration, you must place the module-info.java file in the project directory at:
src/org.apache.felix.framework/module-info.java
How to associate this information with the module org.apache.felix.framework-5.4.0.jar file / bundle / jar?
In addition to compiling the modules and packaging them (bind the module-info.class in the top-level directory of the modular jar), you can use the javac and jar commands.
Examples of commands for the above will be something like this:
$ javac --module-path mods -d mods/org.apache.felix.framework \ src/org.apache.felix.framework/module-info.java src/org.apache.felix.framework/com/apache/felix/framework/Application.java $ jar --create --file=mlib/org.apache.felix.framework.jar \ --main-class=com.apache.felix.framework.Application -C mods/com.apache.felix.framework
And then you can execute the module using:
$ java -p mlib -m com.apache.felix.framework
In addition to the State Module system and Quick-Start documents, to migrate existing projects to Java-9, I suggest you follow the JDK9 Migration Guide , which outlines the clear step required to adapt to Java9.
source share