a new module named butterflyModule has been created by authors in chapter 6.But they said module name will be zoo.butterfly.Now I am creating a module named zoo.butterfly and add a butterfly class also module info file as shown.To compile this module,I need to wirte javac -d butterflyModule .... But I get an error like this javac: directory not found: butterflyModule? Now my question,where is butterflyModule? Where I am doing mistale?
Good question. The chapter assumes you are following along with the code from the github repo. So the directory is in here. (In the 815 book, we walked through how to set up and compile modules. Since that was a pre-req, by this chapter, we assumed people knew already.
Note: That chapter in the 815 book is reproduced as an appendix in the book you are reading.