Bonjour
J'ai un souci avec un code faisant des modification dans les Preferences afin de gerer l'installation d'une licence pour mon apllication.
Ce code a ete developpe initialement sous Windows XP (et y fonctionne tres bien) et j'aurais maintenant besoin de le faire tourner sous Windows 7.
Malheureusement, cela ne fonctionne pas des la 1ere ligne que voici :
Preferences pref = Preferences.systemRoot().node("SoftInstall");
La methode node(...) genere l'erreur suivante :
1 2 3 4 5 6
| Sep 26, 2012 3:47:51 AM java.util.prefs.WindowsPreferences <init>
WARNING: Could not create windows registry node Software\JavaSoft\Prefs\/Soft/Install at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
Sep 26, 2012 3:47:52 AM java.util.prefs.WindowsPreferences WindowsRegOpenKey1
WARNING: Trying to recreate Windows registry node Software\JavaSoft\Prefs\/Soft/Install at root 0x80000002.
Sep 26, 2012 3:47:52 AM java.util.prefs.WindowsPreferences openKey
WARNING: Could not open windows registry node Software\JavaSoft\Prefs\/Soft/Install at root 0x80000002. Windows RegOpenKey(...) returned error code 2. |
Je suppose que cela vient d'un pb de droit d'acces ou peut etre du au passage en 64 bits mais je n'ai pas reussi à trouver sur internet comment y palier. Est ce que quelqu'un a une idee qui pourrait m'aider?
Merci par avance de votre aide.
Partager