[HD Pg 0, Sec. 16.2.1 - compiling-a-module]
Posted: Mon May 20, 2024 6:50 am
Hi,
Running the command for compiling the module given in the example:
javac -d out --module-source-path src --module simpleinterest
resulted in the following directory structure:
out
└───simpleinterest
│ module-info.class
│
└───simpleinterest
└───simpleinterest
SimpleInterestCalculator.class
This means that we end up with an extra folder in our module, and the command to run this also needs to be modified accordingly.
Moreover, whenever this project is opened in an IDE, it gives an error saying that module-info.java needs to be in the src directory, not simpleinterest.
Can this be elaborated upon?
Running the command for compiling the module given in the example:
javac -d out --module-source-path src --module simpleinterest
resulted in the following directory structure:
out
└───simpleinterest
│ module-info.class
│
└───simpleinterest
└───simpleinterest
SimpleInterestCalculator.class
This means that we end up with an extra folder in our module, and the command to run this also needs to be modified accordingly.
Moreover, whenever this project is opened in an IDE, it gives an error saying that module-info.java needs to be in the src directory, not simpleinterest.
Can this be elaborated upon?