I have runnable jar and I would like to change a properties file inside this runnable jar itself. The main aim here is that when this jar runs for the first time, it communicates with some other modules using some IPC and gets some details from the other module, so after getting some details this jar must persist those values to itself so that when it runs again next time, it must be able to use those new details.
If this is not possible, what could be the best way to do such a thing as storing these details to temporary location may a not a good way.