Hi Federica,
Sorry, my first posting was wrong and you're right.
The
-m option must go in the very end, because after the runnable class will go arguments which will be passed into the
static main(String[] args) method, so option
-p (module path) may not go after the
-m (module), in that case it will be ignored by Java Module System, and passed as array of strings in the main method
This must be the correct command:
java -p modules -m zoo.animal.talks/zoo.animal.talks.Peacocks