I have seen this question in the forums and on several Google Searches, but following the suggestions has so far been unsuccessful.
I have a module in a project with the following Configuration
... various libraries
I need to add the jndi.properties, .bindings and log4j.properties resource files into my module classpath so I can execute the JMSConnector.main() and access the jndi.properties file like this:
I have already gone to the ModuleSettings -> Sources and added the cfg folder under Source Folders (I was told this would put the folder and it's files in the classpath). I have gone to the Settings -> Compiler area and checked that ?*.properties was in there and put in the .bindings pattern.
My run configuration has com.whatever.jms.JMSConnector as the running class.
When I execute it with this configuration, it cannot find the "jndi.properties" file. (However, if I move the jndi.properties file in the same package as JMSConnector, it sees it....
BUT, I do not want to have to place my resources (which may be accessed by several different classes) into the folder with EACH CLASS.
Any help.... (I am moving from Eclipse where this was consistent and easy to do to IntelliJ -- bought a licence for it.).