I would use a subdirectory in the users home directory. For instance. System.getProperty ("user.home") + File.separator + ".myapp /"
But for this, the user needs to add additional permissions for the web launch application.
To save, you can use the properties file or XmlEncoder, which are included in the JDK. Or use external libraries like XStream , Xvantage or a simple structure where it is simple, like
xstream.save(anyObject)
source share