I created a Java project that contains three configuration file
- log4j.XML
- QueueConfig.xml
- rabbitmq.properties
I put these three files into a resource folder.
Then I created a jar file of my project. This jar file is added to another project. It isn’t able to find the correct location of the configuration files.
My file structure:

Thanks
you can use it like.
than if you add this jar to another project you will be able to access it.