CLASSPATH is not loading in wildfly 17

Posted on

I have created the custom modules in wildfly with the jars. then added as global module in standalone-full.xml, then added the entry in jboss-deployment-structure.xml.

In My code, I have written the following to get the class path.

System.getProperty("java.class.path")

This always returns the jboss-module.jar, I want the jars to be loaded from the module where I defined, hence I can load some application related things.

How to do that. In WebLogic we pass as PRE_CLASSPATH and CLASSPATH, it loads the jars here.

What is the equivalent of it and how to achieve in Wildfly 17.

Thanks in advance.

Responses