The simplest way is to prompt the user for the directory you need to write the files.
You could use the directory where the classes come from as basis for finding this dir.
Any other approach is likely to be a bit random.
As long as I am running it from eclipse and making those sub folders required, its working fine.
But how to make it work from non-eclipse environment?
Basically unzipping my application will contain config, bin and lib folders. Lib folder contains the jar file created from the application in eclipse. I will be creating, reading and writing into some text files in config folder.
Please help me.....
I have written bat file to run this application. Even in that bat file also, I need to specify all the jar files path. But this application can be copied anywhere and even I dont know the location of it...
How we will be handling these situations in JAVA generally???