Detect first time user in java app

后端 未结 3 702
太阳男子
太阳男子 2021-01-13 07:35

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 t

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-13 08:08

    Try to use Preferences and its systemRoot() or userRoot() methods to obtain system-wide or user-specific preferences.

提交回复
热议问题