You can't have two modules in the same jar file. The book notes on page 402 under Packaging a module:
The only thing special about a module jar is that the name of the jar is, by convention, the same as the name of the module (with .jar extension, of course). Inside the jar file, class files must still exist in their package driven directory structure just like before. Observe that a module also has a module-info.class in its root folder. This class must be in the root folder of the module’s jar as well.
Since there is a module-info.class for each module but only one module-info.class can reside in the root of a jar, it is not possible to put two modules in the same jar.
Of course, you can create a regular jar and put all the classes in it and run it as a regular jar but you can't use module options with this jar.