1/7/2023 0 Comments Get intellij jar run location![]() It’s the same as the first way except you don’t need to add another Source root in the Module Paths settings, the file will be copied to the output directory on Make. Yet another solution would be to put the log4j.properties file directly under the Source root of your project (in the default package directory). ![]() Go to Project Structure | Modules | Your Module | Dependencies, click Add, Single-Entry Module Library, specify the path to the “resources” folder. If the Resource Patterns contains the extension of your resource, then it will be copied to the output directory when you Make the project and output directory is automatically a classpath of your application.Īnother common way is to add the “resources” folder to the classpath directly. Actually, you have at least 2 ways to do it, the first way is described by ColinD, you just configure the “resources” folder as Sources folder in IDEA.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |