Hello Karthik, On Tue, 19 Apr 2022 at 14:45, KARTHIK SHIVAKUMAR <nskarthi...@gmail.com> wrote:
> I need log4j2 to log all of the info/debug objects across the project. > If i add log4j2-core & log4j2-api to the project library, the packages > do not recognise the log4j objects unless there is a entry to > 'module-info.java > Yes, if you want to use the Java Platform Module System, you need to add: requires org.apache.logging.log4j; to your `module-info.java` file (and put Log4j jars on the module path). However JPMS is not very widespread, so in an initial version of your project I wouldn't bother with modules and I would remove `module-info.java`. Piotr