samasamajam
Programmer
Hi,
My standalone application is bundled into a jar file and uses a properties file for configuration settings and the properties file is also bundled inside the same jar.
For reading from the properties file,I use the following code snippet - this.getClass().getResourceAsStream(sPropertiesFile).
I want to create a functionality for editing the properties file within the same standalone application without having to manually unjar and update properties file. But i am not able to access the properties file. Is it possible to update the properties file that is inside the jar using classes which reside in the same jar.
My standalone application is bundled into a jar file and uses a properties file for configuration settings and the properties file is also bundled inside the same jar.
For reading from the properties file,I use the following code snippet - this.getClass().getResourceAsStream(sPropertiesFile).
I want to create a functionality for editing the properties file within the same standalone application without having to manually unjar and update properties file. But i am not able to access the properties file. Is it possible to update the properties file that is inside the jar using classes which reside in the same jar.