Trying to use Preferences in java but need admin rights (need to work on windows and MAC) -


i trying save settings program.

i instance asking user pick folder when program run first time.

this working , wonderfull, not saved.

prefs = preferences.userroot().node(this.getclass().getname());

returns warning: not open/create prefs root node software\javasoft\prefs @ root 0x80000002. windows regcreatekeyex(...) returned error code 5.

error code 5 (access denied)

how ask admin rights? both on windows , mac, thank time!

i found out when using userroot(), program indeed makes key. throws warning because java tries make in systemroot() aswell, incase ever need in systemroot. when using userroot() never will.


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -