Where are the Java preferences stored in Windows 7? -
we use java preferences in of our apps , haven't noticed since utility makes calls old , written in windows xp days. seems java preferences no longer stored in registry in windows 7 - or stored somewhere different.
i'm expecting in:
hkey_local_machine\software\javasoft\prefs
but don't see there.
what makes wierder, when run app:
public static void main( final string[] args ) throws backingstoreexception { preferences systemroot = preferences.systemroot(); preferences preferences = systemroot.node( "com/mycompany/settings" ); systemroot.put( "foo", "bar" ); systemroot.put( "baz", "lolz" ); system.out.println( "-------------------------------" ); string[] keys = preferences.keys(); for( string key : keys ) { system.out.println( key ); } system.out.println( "-------------------------------" ); keys = systemroot.keys(); for( string key : keys ) { system.out.println( key ); } }
it writes (i can comment put out , run again , works) don't see new keys in registry.
also, can't seem see documented anywhere. in advance.
edit #1 reason matters setting changes dependent upon environment ran. being said, useful simulate environment inserting registry keys manually , doing checking.
i running admin, yet did not see keys in registry expected them be.
they under current user: hkey_current_user\software\javasoft\prefs
Comments
Post a Comment