D
Daisy
I have a small desktop application that writes 2 Strings to the user
portion of Java preferences. On some Windows machines, the save does
not actually save a value. My early analysis indicates Registry
security blocks the write. Is there some work around?
Thanks
Daisy
public class GuiPreferences {
private static final String IP_ADDRESS = "ip_address";
public GuiPreferences() {
Preferences preferences =
Preferences.userNodeForPackage(GuiPreferences.class );
preferences.put( IP_ADDRESS , "10.1.10.1" );
// this returns null
String retrievedIp = preferences.get( IP_ADDRESS , null );
}
}
portion of Java preferences. On some Windows machines, the save does
not actually save a value. My early analysis indicates Registry
security blocks the write. Is there some work around?
Thanks
Daisy
public class GuiPreferences {
private static final String IP_ADDRESS = "ip_address";
public GuiPreferences() {
Preferences preferences =
Preferences.userNodeForPackage(GuiPreferences.class );
preferences.put( IP_ADDRESS , "10.1.10.1" );
// this returns null
String retrievedIp = preferences.get( IP_ADDRESS , null );
}
}