Step 1: Create the following folders
1. c:\projects\learn-java is the “project folder“.
2. com\mycompany1\main & com\mycompany1\service are the “packages” under the project.
3. c:\projects\learn-java\bin for the compiled “.class” files.
4. c:\projects\learn-java\target for the packaged project jar file.
5. c:\projects\learn-java\lib for the third-party library jar files.…