include file/folder to CLASSPATH

I have a folder with a set of configuration files.

the instruction to run a program says that i need to copy them to the CLASSPATH.

i am using the IntellJ IDE to compile and run the program.  Is there a way to point to(configure) the IDE to include the particular folder so that it automatically include all the files in the folder

3 comments

Hi Dhananjeyan,

You can configure that directory as a module source root if it's a part of your project or as a module dependency.

Regards, Denis

0

it works however i need to clarify one more thing

the problem got sorted out when i did both the below said methods

a) Module -> dependencies - >Add -> pointed to the folder
b) libraries -> attach classes -> pointed to the folder

now what i need to know is the difference and which one is the correct way of solving it?

0

Both methods you mention deal with module dependencies. I.e. you just added external folder as a dependency for your module.

0

Please sign in to leave a comment.