I want my java desktop application to know if the user is running it for the first time on that pc. Since the jar-file might be shared between users i don’t want to write to a file inside the jar-file.
There are obviously a lot of ways to do this but what would you recommend? (It has to be cross-platform). thanks
I want my java desktop application to know if the user is running it
Share
Try to use Preferences and its systemRoot() or userRoot() methods to obtain system-wide or user-specific preferences.