Thx for the same.... This is exactly i have been doing ( ignore
module-info.java)

This whole JPMS is a confusion with no proper  info across  jars available
in Maven  repository for module vs classpath usage...


with regards
Karthik

On Tue, Apr 19, 2022 at 6:47 PM Piotr P. Karwasz <piotr.karw...@gmail.com>
wrote:

> 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
>


-- 

*with regards*
*N.S.KARTHIK*

Reply via email to