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

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -