Where to put application data and temp files on Windows, Linux and MAC if java-application is being lauched using JWS

十年热恋 提交于 2019-12-07 19:51:40

问题


Can we allow user to set and save application data and temp data using Java-Application that has beenrun/launch using JWS ? Does it make sense ?

We would like to know if user run JNLP directly then can user save preferences settings on local so when he/she run again JNLP he/she could find his/her last saved settings again.

Where to put application data i.e configuration files, properties file. user download path etc.. and where to put temp files i.e.. logs etc.. on Windows, Linux and MAC if java-application is being launched using JWS ?


回答1:


I often use java.util.prefs.Preferences, but javax.jnlp.PersistenceService is available to Java Web Start applications. Both represent abstractions that are cross-platform.



来源:https://stackoverflow.com/questions/8381954/where-to-put-application-data-and-temp-files-on-windows-linux-and-mac-if-java-a

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!